We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee50cec commit 99b80b4Copy full SHA for 99b80b4
packages/evmcrispr/src/modules/tenderly/commands/fork.ts
@@ -92,7 +92,7 @@ export const fork: ICommand<Tenderly> = {
92
throw new ErrorException(`can't switch networks inside a fork command`);
93
}
94
if (isProviderAction(action)) {
95
- walletClient.request({
+ await walletClient.request({
96
method: action.method as any,
97
params: action.params as any,
98
});
@@ -101,8 +101,8 @@ export const fork: ICommand<Tenderly> = {
101
method: "eth_sendTransaction",
102
params: [
103
{
104
- from: await module.getConnectedAccount(),
105
...action,
+ from: action.from || (await module.getConnectedAccount()),
106
value: toHex(action.value || 0n),
107
},
108
],
0 commit comments