After upgrading to dfx 0.16.1, an empty canister has 134 bytes of memory?

We have an integration test that spins up an empty canister (no wasm) via:

dfx ledger create-canister --amount ${withIcp}

It then checks the memory size returned by canister_status of that canister.


In dfx 0.14.1 and prior, the memory size returned was 0 bytes.
In dfx 0.16.1, that empty canister size is now 134 bytes.

Is this intended, and what’s in those 134 bytes?

1 Like

It’s expected as those 134 bytes are coming from the canister history size which already contains one entry for a freshly created canister. They contain a canister history entry for canister creation (see the Rust type here).

2 Likes