Skip to content

Commit

Permalink
fix: ci fail
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Apr 12, 2024
1 parent 0c3c3c8 commit 3e07fc5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gnovm/stdlibs/std/banker.gno
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package std

import (
"strconv"

"gno.land/p/demo/ufmt"
)

// Realm functions can call std.GetBanker(options) to get
Expand Down Expand Up @@ -109,7 +107,8 @@ func (b banker) SendCoins(from, to Address, amt Coins) {
panic("BankerTypeReadonly cannot send coins")
}
if b.pkgAddr != from.String() {
panic(ufmt.Sprintf("can only send coins from realm that created banker(%s), not (%s)", b.pkgAddr, from))
msg := "can only send coins from realm that created banker(" + b.pkgAddr + ")" + " not ( " + from.String() + ")" // TODO: format string needed
panic(msg)
}
denoms, amounts := amt.expandNative()
bankerSendCoins(uint8(b.bt), string(from), string(to), denoms, amounts)
Expand Down

0 comments on commit 3e07fc5

Please sign in to comment.