Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN committed Nov 27, 2023
1 parent c49062c commit af6d71a
Show file tree
Hide file tree
Showing 6 changed files with 463 additions and 1,130 deletions.
1 change: 1 addition & 0 deletions examples/cis2-multi-sponsored-txs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ concordium-cis2 = {path = "../../concordium-cis2", default-features = false}

[dev-dependencies]
concordium-smart-contract-testing = {path = "../../contract-testing"}
rand = "0.7.0"

[lib]
crate-type=["cdylib", "rlib"]
Expand Down
4 changes: 2 additions & 2 deletions examples/cis2-multi-sponsored-txs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1065,11 +1065,11 @@ fn contract_update_operator(

/// Parameter type for the CIS-2 function `balanceOf` specialized to the subset
/// of TokenIDs used by this contract.
type ContractBalanceOfQueryParams = BalanceOfQueryParams<ContractTokenId>;
pub type ContractBalanceOfQueryParams = BalanceOfQueryParams<ContractTokenId>;

/// Response type for the CIS-2 function `balanceOf` specialized to the subset
/// of TokenAmounts used by this contract.
type ContractBalanceOfQueryResponse = BalanceOfQueryResponse<ContractTokenAmount>;
pub type ContractBalanceOfQueryResponse = BalanceOfQueryResponse<ContractTokenAmount>;

/// Get the balance of given token IDs and addresses.
///
Expand Down
Loading

0 comments on commit af6d71a

Please sign in to comment.