Closed geigerzaehler closed 5 years ago
Instead of Storage consuming the pwasm::Env argument it only borrows it. This allows Ledger_ to provide a reference to pwasm::Env to the Ledger implementation. This reference can be used to, for example, obtain the sender of a transaction.
Storage
pwasm::Env
Ledger_
Ledger
Instead of
Storage
consuming thepwasm::Env
argument it only borrows it. This allowsLedger_
to provide a reference topwasm::Env
to theLedger
implementation. This reference can be used to, for example, obtain the sender of a transaction.