Skip to content

Commit

Permalink
fix: revert pkgaddr
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Apr 11, 2024
1 parent 9907a3c commit 2ae3865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/banktest/banktest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Deposit(returnDenom string, returnAmount int64) string {
// return if any.
if returnAmount > 0 {
banker := std.GetBanker(std.BankerTypeOrigSend)
pkgaddr := std.CurrentRealm().Addr()
pkgaddr := std.GetOrigPkgAddr()
// TODO: use std.Coins constructors, this isn't generally safe.
banker.SendCoins(pkgaddr, caller, send)
return "returned!"
Expand Down

0 comments on commit 2ae3865

Please sign in to comment.