Skip to content

Commit

Permalink
compating only for non-token mints
Browse files Browse the repository at this point in the history
  • Loading branch information
tok-kkk committed Jul 4, 2022
1 parent 27bcd3c commit 0245f17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
github.com/onsi/ginkgo v1.16.4
github.com/onsi/gomega v1.13.0
github.com/renproject/aw v0.6.3
github.com/renproject/darknode v0.5.3-0.20220629042330-959f219155b2
github.com/renproject/darknode v0.5.3-0.20220704062120-2a34228ea88a
github.com/renproject/id v0.4.2
github.com/renproject/kv v1.1.2
github.com/renproject/multichain v0.5.11
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,8 @@ github.com/renproject/darknode v0.5.3-0.20220617045702-599e18a6e67d h1:2ryatL3oT
github.com/renproject/darknode v0.5.3-0.20220617045702-599e18a6e67d/go.mod h1:jbV0CLRtbUgpGUOk08eewmDoB03IbdJCWSb0PLm0UAA=
github.com/renproject/darknode v0.5.3-0.20220629042330-959f219155b2 h1:qhOkrK7gSthyz5BIxRdv7r5ChIUen5MI0KjAo65BqO0=
github.com/renproject/darknode v0.5.3-0.20220629042330-959f219155b2/go.mod h1:OBBX7zNElR/qhC5Aq6v4W/lTlHmdAinuOWd7JsuDn9s=
github.com/renproject/darknode v0.5.3-0.20220704062120-2a34228ea88a h1:bElqTwH2eI32L1dslBZbn8PnLD7vSfKotasqy5OLme8=
github.com/renproject/darknode v0.5.3-0.20220704062120-2a34228ea88a/go.mod h1:OBBX7zNElR/qhC5Aq6v4W/lTlHmdAinuOWd7JsuDn9s=
github.com/renproject/hyperdrive v0.4.9 h1:PbFy7RoELePZSZo55tFS9itNPOuOKr4mjC8MbbngE5M=
github.com/renproject/hyperdrive v0.4.9/go.mod h1:ck1cKJ0M95xwfO0vuEj7ifDjNVYFrPvat5INU70wbUc=
github.com/renproject/id v0.4.2 h1:XseNDPPCJtsZjIWR7Qgf+zxy0Gt5xsLrfwpQxJt5wFQ=
Expand Down
2 changes: 1 addition & 1 deletion resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ func (resolver *Resolver) handleMessage(ctx context.Context, id interface{}, met
// If the tx uses a non-standard target address, we convert it to a
// standard address and update the transaction object. The tx hashes
// mapping will be stored in storage for future quering.
if submitTxParams.Tx.Selector.IsMint() {
if submitTxParams.Tx.Selector.IsMint() && submitTxParams.Tx.Selector.IsLock() && submitTxParams.Tx.Selector.Asset().Type() != multichain.AssetTypeToken {
tx, err := resolver.compatTx(submitTxParams.Tx)
if err == nil {
submitTxParams.Tx = tx
Expand Down

0 comments on commit 0245f17

Please sign in to comment.