You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
passing tokens with contract calls when calling contract from the outside,
passing tokens with contract to contract call.
proper gas metering in tests that allows testing token transfers. The best would be zero-cost gas table.
#[odra(payable)] to mark entrypoint that accept tokens. (also in #[odra::external_contract]?).
TestEnv check of token.
Handle potential different types of integers for native tokens in backends (Casper has u512, Ethereum u256).
In test script.
let one = TestEnv::one_token();TestEnv::with_tokens(1000* one);TestEnv::set_caller(user1);
contract.deposit();assert_eq!(TestEnv::token_balance(user1),
TestEnv::token_balance(contract.address()))
Handle native token:
#[odra(payable)]
to mark entrypoint that accept tokens. (also in#[odra::external_contract]
?).u512
, Ethereumu256
).In test script.
In contract.
The text was updated successfully, but these errors were encountered: