Skip to content

Commit

Permalink
bump up version of stafihub sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
asilenced committed Aug 5, 2022
1 parent dc4dca5 commit 682d854
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
3 changes: 0 additions & 3 deletions chains/substrate/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ func FungibleTransferEventData(evt *substrate.ChainEvent, decimals map[string]de

decimal, ok := decimals[resourceIdStr]
if !ok {
// decimal, ok = decimals[decimalDefault]
// if !ok {
return nil, fmt.Errorf("failed to get decimal")
// }
}
eft.Decimal = decimal
return eft, nil
Expand Down
3 changes: 0 additions & 3 deletions chains/substrate/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@ func (w *writer) createFungibleProposal(m msg.Message) (*proposal, error) {

d, ok := w.decimals[resourceIdStr]
if !ok {
// d, ok = w.decimals[decimalDefault]
// if !ok {
return nil, fmt.Errorf("failed to get decimal")
// }
}

amount := types.NewU128(*decimal.NewFromBigInt(bigAmt, 0).Div(d).BigInt())
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.11.0
github.com/stafihub/rtoken-relay-core/common v0.0.0-20220802000335-3df19a5ca75a
github.com/stafihub/stafi-hub-relay-sdk v1.6.1
github.com/stafihub/stafihub v0.0.0-20220801021056-1080f0037668
github.com/stafihub/stafi-hub-relay-sdk v1.6.2
github.com/stafihub/stafihub v0.0.0-20220805082732-1f0dbdbfe992
github.com/stafiprotocol/go-substrate-rpc-client v1.1.3
github.com/stafiprotocol/solana-go-sdk v1.2.0
github.com/stretchr/testify v1.7.1
Expand Down Expand Up @@ -46,7 +46,7 @@ require (
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gorocksdb v1.2.0 // indirect
github.com/cosmos/iavl v0.17.3 // indirect
github.com/cosmos/ibc-go/v3 v3.1.0 // indirect
github.com/cosmos/ibc-go/v3 v3.1.1 // indirect
github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect
github.com/cosmos/ledger-go v0.9.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
github.com/cosmos/iavl v0.17.3 h1:s2N819a2olOmiauVa0WAhoIJq9EhSXE9HDBAoR9k+8Y=
github.com/cosmos/iavl v0.17.3/go.mod h1:prJoErZFABYZGDHka1R6Oay4z9PrNeFFiMKHDAMOi4w=
github.com/cosmos/ibc-go/v3 v3.1.0 h1:aVPqkrGBluz6t9+d/sLZIG/zQ9O1KJzVeR4UlL/IFTQ=
github.com/cosmos/ibc-go/v3 v3.1.0/go.mod h1:DbOlOa4yKumaHGKApKkJN90L88PCjSD9ZBdAfL9tT40=
github.com/cosmos/ibc-go/v3 v3.1.1 h1:Yodps4ezxbKS8u0TNJkdYsf+MCb0XzUuIuxIkSUMwbA=
github.com/cosmos/ibc-go/v3 v3.1.1/go.mod h1:IR1bpjywC1i0YcElPa4d2IevNUBZehKoD5bscQlbDyM=
github.com/cosmos/keyring v1.1.6 h1:AXKMQB29ribVBqoJL9TRgWEa7zzawB8xl3wKNZmXrdo=
github.com/cosmos/keyring v1.1.6/go.mod h1:16e0ds7LGQQcT59QqkTg72Hh5ShM51Byv5PEmW6uoRU=
github.com/cosmos/ledger-cosmos-go v0.11.1 h1:9JIYsGnXP613pb2vPjFeMMjBI5lEDsEaF6oYorTy6J4=
Expand Down Expand Up @@ -1087,10 +1087,10 @@ github.com/stafihub/cosmos-sdk v0.45.6-stafihub-0.0.4 h1:lKHB+no1VR/AlfMl4t1lLH8
github.com/stafihub/cosmos-sdk v0.45.6-stafihub-0.0.4/go.mod h1:bPeeVMEtVvH3y3xAGHVbK+/CZlpaazzh77hG8ZrcJpI=
github.com/stafihub/rtoken-relay-core/common v0.0.0-20220802000335-3df19a5ca75a h1:Nm48Becb1zHtLUVK8B2Hd42bdlOeBGgZQ2qvFW4TC38=
github.com/stafihub/rtoken-relay-core/common v0.0.0-20220802000335-3df19a5ca75a/go.mod h1:AVZBB1ZQMjxBUFVEGS8EBFZuB0TgnPtJq1KMToCjTGU=
github.com/stafihub/stafi-hub-relay-sdk v1.6.1 h1:pfDzs9TiF1ZFTGQsMd5dEkmB8rETCXBoSUA0mUj+dW4=
github.com/stafihub/stafi-hub-relay-sdk v1.6.1/go.mod h1:jrVq1YIeHrvmGFdEbcFHOtqu6rHkUhAVxLMtpWbXAEc=
github.com/stafihub/stafihub v0.0.0-20220801021056-1080f0037668 h1:CerOqxSpgfrtdy7gbdL0FDNZJ6CbPOmAE9c10nlIaSI=
github.com/stafihub/stafihub v0.0.0-20220801021056-1080f0037668/go.mod h1:Ntjl6bFO153E3f+mngMkDSB3km7k8FGdtSkIkOkxcjY=
github.com/stafihub/stafi-hub-relay-sdk v1.6.2 h1:rm0UK+5mqGmsw7tYrbtPTLBCcDwLCQ0RZYDLSzPu0M8=
github.com/stafihub/stafi-hub-relay-sdk v1.6.2/go.mod h1:/LyTI+EGHAi1ce3zYZwm3ChzEIPL3FFB7UIateTd5G4=
github.com/stafihub/stafihub v0.0.0-20220805082732-1f0dbdbfe992 h1:7dr+06ogdYDvyFE5zmhThuhvkWrB2wbs2GtSmibbjHY=
github.com/stafihub/stafihub v0.0.0-20220805082732-1f0dbdbfe992/go.mod h1:NG1ThXoSl8bffJD1AiujPRvssGSV7rfo+d7uhbtKBDw=
github.com/stafiprotocol/go-substrate-rpc-client v1.1.3 h1:wtRc1AKjdgvAuy6Uxl/yXxd4bhoEfZonpttligceYyY=
github.com/stafiprotocol/go-substrate-rpc-client v1.1.3/go.mod h1:P3xucNyw6UjKvCvGg0eiQJhcRyZsUv5a9akxDTLMHFk=
github.com/stafiprotocol/solana-go-sdk v1.2.0 h1:p04P2/Y+ElY1RzGtQgUtOU91r4RA4t27oUEQt5D+6Zc=
Expand Down

0 comments on commit 682d854

Please sign in to comment.