From 3844a0835a508d8b1fcb6b7606ec294e7991e421 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Wed, 22 Jun 2022 21:52:00 -0400 Subject: [PATCH] problem: cannot make a transaction because fails on invalid eth_estimateGas call --- packages/store/src/transaction/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/store/src/transaction/actions.ts b/packages/store/src/transaction/actions.ts index b42b514ca..a6edb0c66 100644 --- a/packages/store/src/transaction/actions.ts +++ b/packages/store/src/transaction/actions.ts @@ -101,7 +101,7 @@ function verifySender(expected: string): (a: string, c: BlockchainCode) => Promi if (tx.verifySignature()) { log.debug('Tx signature verified'); if (!tx.getSenderAddress().equals(new EthereumAddress(expected))) { - log.error(`WRONG SENDER: 0x${tx.getSenderAddress().toString()} != ${expected}`); + log.error(`WRONG SENDER: ${tx.getSenderAddress().toString()} != ${expected}`); reject(new Error('Emerald Vault returned signature from wrong Sender')); } else { resolve(raw); @@ -251,7 +251,7 @@ export function estimateGas(chain: BlockchainCode, tx: Tx): Dispatched { data, from, to, - gas: gas.toNumber(), + gas: `0x${gas.toString(16)}`, value: `0x${value?.number.toString(16) ?? 0}`, }); };