- Runs exactly once when the contract is deployed
- Must be annotated with
#[constructor] - Up to one constructor per contract
- Function is conventionally named
constructor
- The constructor takes three parameters:
a,b, andc - Each parameter corresponds to a storage variable of the same name, but you can specify any argument variable name
- The values are written to storage using the
write()method. You need to import theStoragePointerWriteAccesstrait to be able to write to a specific storage pointer