Default value for AssetId in storage?

asset: AssetId = AssetId::default()

What should I put in my storage as a default value?

AssetId::from is not implemented

I figured it out:

const ZERO_B256 = 0x0000000000000000000000000000000000000000000000000000000000000000;

AssetId is not really a ‘type’ it’s an alias to b256, so this works

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.