Skip to content

Commit

Permalink
update modify_wnear_id (#102)
Browse files Browse the repository at this point in the history
* skip_unwrap_near

* update makefile

* build release

* add auto_whitelisted_postfix

* build release

* update modify_wnear_id

* build release

---------

Co-authored-by: Marco <[email protected]>
  • Loading branch information
MagicGordon and Marco authored Mar 13, 2024
1 parent d4a70ee commit e86ee68
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ref-exchange/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Version 1.9.0
```
B168SPA7hbfwWyNnQnTrgtYZf85XdaafXj9SydkhWkZT
B83JY6Ga7A82ojKyYjQBsFBA45EAxgAPpjjzqqHcp9rH
```
1. support skip_unwrap_near indication in swap.
2. support auto_whitelist tokens according to their postfix of account ids.
Expand Down
2 changes: 1 addition & 1 deletion ref-exchange/src/owner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl Contract {
#[payable]
pub fn modify_wnear_id(&mut self, wnear_id: AccountId) {
assert_one_yocto();
assert!(self.is_owner_or_guardians(), "{}", ERR100_NOT_ALLOWED);
self.assert_owner();
log!("Modify wnear_id from {:?} to {}", self.wnear_id, wnear_id);
self.wnear_id = Some(wnear_id);
}
Expand Down
Binary file modified releases/ref_exchange_release.wasm
Binary file not shown.

0 comments on commit e86ee68

Please sign in to comment.