Skip to content

Commit

Permalink
problem: cannot make a transaction because fails on invalid eth_estim…
Browse files Browse the repository at this point in the history
…ateGas call
  • Loading branch information
splix committed Jun 23, 2022
1 parent 139cc58 commit 3844a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/store/src/transaction/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -251,7 +251,7 @@ export function estimateGas(chain: BlockchainCode, tx: Tx): Dispatched<any> {
data,
from,
to,
gas: gas.toNumber(),
gas: `0x${gas.toString(16)}`,
value: `0x${value?.number.toString(16) ?? 0}`,
});
};
Expand Down

0 comments on commit 3844a08

Please sign in to comment.