How do I create an Address of 0?

If, for example, you need to check if an address is or is not zero, you can use the type Address to create a 0 address like below:

use fuels::prelude::*;

let zero_address = Address::from([0; 32]);
1 Like