Fixed Transfer issue

This commit is contained in:
liangping 2022-08-05 22:58:24 +08:00
parent 5cb34379ce
commit ef0ef81b4d
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
"@ledgerhq/hw-transport-webusb": "^6.27.1",
"@metamask/eth-sig-util": "^4.0.1",
"@tharsis/address-converter": "^0.1.8",
"@tharsis/transactions": "^0.2.3",
"@tharsis/transactions": "^0.2.5",
"@vue/composition-api": "^1.4.9",
"@vueuse/core": "4.0.0",
"animate.css": "4.1.1",

View File

@ -76,7 +76,7 @@ export class SendMessageAdapter implements MessageAdapter {
toProto(message: EncodeObject) {
const param = message.value
const amount = Array.isArray(param.amount) ? param.amount[0] : param.amount
return createMsgSend(param.fromAddress, param.toAddress, amount.amount, param.amount.denom)
return createMsgSend(param.fromAddress, param.toAddress, amount.amount, amount.denom)
}
getTypes() {
return MSG_SEND_TYPES