Is there any address(0) equivalent at dfinity/motoko?

Hello dear All!

Is there any solidity address(0) equivalent at dfinity/motoko?

Not that I’m aware of. Even on solidity, isn’t that just a property of an ERC20 style contract, not the platform/language?

The Principal aaaaa-aa

The IC management canister address is aaaaa-aa (i.e. the empty blob).

2 Likes

I think this is the functionality of solidity that returns 0x0 address

Yeah, may it help me

I tried

let null_address : Principal = Principal.fromText("aaaaa-aa");

This worked for now. Thank you guys!

1 Like