From ef0ef81b4d7692562a3381302de3b4e4176dffd4 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 5 Aug 2022 22:58:24 +0800 Subject: [PATCH] Fixed Transfer issue --- package.json | 2 +- src/libs/client/MessageAdapter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1ecc245c..73a02f32 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/libs/client/MessageAdapter.ts b/src/libs/client/MessageAdapter.ts index 93db81e0..30d3b2cc 100644 --- a/src/libs/client/MessageAdapter.ts +++ b/src/libs/client/MessageAdapter.ts @@ -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