pub fn cost(&self) -> Option<U256> {
        match self {
            Self::EthAddrReg(tx) => tx.cost(),
            Self::Meta(tx) => tx.cost(),
            Self::SimpleUDT(tx) => tx.cost(),
            Self::Polyjuice(tx) => tx.cost(),
        }
    }
/// Got expect cost of the tx, (transfer value + maximum fee).
/// returns none if tx has no cost, it may happend when we call readonly interface of some Godwoken builtin contracts.
Got expect cost of the tx, (transfer value + maximum fee).
returns none if tx has no cost, it may happend when we call readonly interface of some Godwoken builtin contracts.
Got expect cost of the tx ( transfer value + maximum fee ) . returns none if tx has no cost it may happend when we call readonly interface of some Godwoken builtin contracts .
pub fn cost(&self) -> Option<U256> {
        match self {
            Self::EthAddrReg(tx) => tx.cost(),
            Self::Meta(tx) => tx.cost(),
            Self::SimpleUDT(tx) => tx.cost(),
            Self::Polyjuice(tx) => tx.cost(),
        }
    }
pub fn cost ( & self ) -> Option < U256 > { match self { Self :: EthAddrReg ( tx ) => tx . cost ( ) , Self :: Meta ( tx ) => tx . cost ( ) , Self :: SimpleUDT ( tx ) => tx . cost ( ) , Self :: Polyjuice ( tx ) => tx . cost ( ) , } }
Got expect cost of the tx, (transfer value + maximum fee).
Got expect cost of the tx ( transfer value + maximum fee ) .
&self
&self