pub type Address = H160;
Expand description
A Solidity compatible address
type.
§Note
This is a type alias for the H160
type used for addresses in pallet-revive
.
Aliased Type§
struct Address(pub [u8; 20]);
Fields§
§0: [u8; 20]
Trait Implementations§
Source§impl SolDecode for Address
impl SolDecode for Address
Source§impl SolEncode<'_> for Address
impl SolEncode<'_> for Address
Source§fn to_sol_type(&self) -> Self::SolType
fn to_sol_type(&self) -> Self::SolType
Converts from
Self
to Self::SolType
via either a borrow (if possible), or
a possibly expensive conversion otherwise.Source§impl SolTypeDecode for Address
impl SolTypeDecode for Address
Source§impl SolTypeEncode for Address
impl SolTypeEncode for Address
Source§const DEFAULT_VALUE: Self::DefaultType = {transmute(0x0000000000000001): <primitive_types::H160 as sol::types::SolTokenType>::DefaultType}
const DEFAULT_VALUE: Self::DefaultType = {transmute(0x0000000000000001): <primitive_types::H160 as sol::types::SolTokenType>::DefaultType}
An encodable representation of the default value for this type.
Source§fn tokenize(&self) -> Self::TokenType<'_>
fn tokenize(&self) -> Self::TokenType<'_>
Tokenizes the given value into a
Self::AlloyType
token.