Skip to content

Commit 4bb4f4c

Browse files
author
Usn Zorro
committed
Fix: if buy fails NEAR should go to the predecessor
1 parent 9fea4eb commit 4bb4f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ impl Contract {
381381
// But the refund will still happen.
382382
.as_return()
383383
.then(ext_self::handle_refund(
384-
account,
384+
env::predecessor_account_id(),
385385
near.into(),
386386
env::current_account_id(),
387387
NO_DEPOSIT,

0 commit comments

Comments
 (0)