Skip to content

Commit

Permalink
fix(wallet): add back missing txData for signTransaction,sendTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Oct 26, 2023
1 parent ca572b2 commit 39088fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ WalletMiddlewareOptions): JsonRpcMiddleware<any, Block> {

const params = req.params as [TransactionParams?];
const txParams: TransactionParams = {
...params[0],
from: await validateAndNormalizeKeyholder(params[0]?.from || '', req),
};
res.result = await processTransaction(txParams, req);
Expand All @@ -178,6 +179,7 @@ WalletMiddlewareOptions): JsonRpcMiddleware<any, Block> {

const params = req.params as [TransactionParams?];
const txParams: TransactionParams = {
...params[0],
from: await validateAndNormalizeKeyholder(params[0]?.from || '', req),
};
res.result = await processSignTransaction(txParams, req);
Expand Down

0 comments on commit 39088fc

Please sign in to comment.