Skip to content

Commit 02d588a

Browse files
author
Maxim
committed
Fix fee delegation (typedata hash err)
1 parent 58b0a91 commit 02d588a

File tree

4 files changed

+11
-36
lines changed

4 files changed

+11
-36
lines changed

eip712.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ var eip712SpotOrderTypes = typeddata.Types{
155155
},
156156
}
157157

158-
159158
var eip712TransactionTypes = typeddata.Types{
160159
"EIP712Domain": {
161160
{

eip712_cosmos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func WrapTxToEIP712(
4646
}
4747

4848
if feeDelegation != nil {
49-
txData["fee"] = map[string]string{
49+
txData["fee"] = map[string]interface{}{
5050
"feePayer": feeDelegation.FeePayer.String(),
5151
"gas": txData["fee"].(map[string]interface{})["gas"].(string),
5252
}

go.mod

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/bugsnag/panicwrap v1.2.0 // indirect
1313
github.com/cespare/cp v1.1.1 // indirect
1414
github.com/cosmos/cosmos-sdk v0.43.0-beta1
15-
github.com/cosmos/ibc-go v1.0.0-alpha2 // indirect
15+
github.com/cosmos/ibc-go v1.0.0-alpha2
1616
github.com/deckarep/golang-set v1.7.1 // indirect
1717
github.com/ethereum/go-ethereum v1.9.25
1818
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 // indirect
@@ -24,7 +24,6 @@ require (
2424
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
2525
github.com/karalabe/usb v0.0.0-20191104083709-911d15fe12a9 // indirect
2626
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
27-
github.com/mattn/go-colorable v0.1.7 // indirect
2827
github.com/olekukonko/tablewriter v0.0.5
2928
github.com/onsi/ginkgo v1.15.1
3029
github.com/onsi/gomega v1.10.1
@@ -35,14 +34,13 @@ require (
3534
github.com/shopspring/decimal v1.2.0
3635
github.com/spf13/cobra v1.1.3
3736
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969 // indirect
38-
github.com/stretchr/testify v1.7.0
3937
github.com/tendermint/tendermint v0.34.10
4038
github.com/tyler-smith/go-bip39 v1.0.2
4139
github.com/xlab/suplog v1.3.0
4240
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
4341
google.golang.org/genproto v0.0.0-20210114201628-6edceaf6022f
4442
google.golang.org/grpc v1.37.1
45-
google.golang.org/protobuf v1.26.0 // indirect
43+
google.golang.org/protobuf v1.26.0
4644
gopkg.in/yaml.v2 v2.4.0
4745
)
4846

0 commit comments

Comments
 (0)