Skip to main content

evm_contract_address

Attribute Macro evm_contract_address 

#[evm_contract_address]
Expand description

A helper attribute for #[sdk_derive(...)]. It doesn’t do anything on its own; it only marks the function within a contract implementation that returns its address.

The method marked with this attribute should take no arguments and return an object of type primitive_types::H160.