Skip to content

Commit

Permalink
Fix fee delegation amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim committed Jun 21, 2021
1 parent 37d9cb5 commit ea066e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eip712_cosmos.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ func WrapTxToEIP712(
}

if feeDelegation != nil {
txData["fee"] = map[string]interface{}{
"feePayer": feeDelegation.FeePayer.String(),
"gas": txData["fee"].(map[string]interface{})["gas"].(string),
}
feeInfo := txData["fee"].(map[string]interface{})
feeInfo["feePayer"] = feeDelegation.FeePayer.String()

// also patching msgTypes to include feePayer
msgTypes["Fee"] = []typeddata.Type{
{Name: "feePayer", Type: "string"},
{Name: "amount", Type: "Coin[]"},
{Name: "gas", Type: "string"},
}
}
Expand Down

0 comments on commit ea066e0

Please sign in to comment.