Skip to content

Commit

Permalink
fixed small issue in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
newbreedofgeek committed Aug 4, 2022
1 parent 089ca1f commit ab9036d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ The init function is called when deploying or upgrading the smart contract. It r
```

Endpoint that sets the claims token. It can only be used once and it can only be called by the owner of the contract.
Call structure: "setRewardToken" + "@" + TokenIdentifier hex encoded
Example: "setRewardToken@49544845554d2d613631333137"
Call structure: "setClaimToken" + "@" + TokenIdentifier hex encoded
Example: "setClaimToken@49544845554d2d613631333137"

### Only owner endpoints

Expand Down
1 change: 1 addition & 0 deletions tests/rust_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ fn add_claims_privileged_test() {
)
.assert_user_error("Address doesn't have the privilege to use this operation");
}

#[test] //Tests whether the transaction to add a token fails in the case in which a different token than the claim token is sent
fn add_claim_wrong_token_test() {
let mut setup = setup_contract(claims::contract_obj);
Expand Down

0 comments on commit ab9036d

Please sign in to comment.