Skip to content

Commit 99b80b4

Browse files
committed
Fixes in tenderly:fork command
1 parent ee50cec commit 99b80b4

File tree

1 file changed

+2
-2
lines changed
  • packages/evmcrispr/src/modules/tenderly/commands

1 file changed

+2
-2
lines changed

packages/evmcrispr/src/modules/tenderly/commands/fork.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const fork: ICommand<Tenderly> = {
9292
throw new ErrorException(`can't switch networks inside a fork command`);
9393
}
9494
if (isProviderAction(action)) {
95-
walletClient.request({
95+
await walletClient.request({
9696
method: action.method as any,
9797
params: action.params as any,
9898
});
@@ -101,8 +101,8 @@ export const fork: ICommand<Tenderly> = {
101101
method: "eth_sendTransaction",
102102
params: [
103103
{
104-
from: await module.getConnectedAccount(),
105104
...action,
105+
from: action.from || (await module.getConnectedAccount()),
106106
value: toHex(action.value || 0n),
107107
},
108108
],

0 commit comments

Comments
 (0)