Skip to content

Commit

Permalink
Fix tenderly simulation link
Browse files Browse the repository at this point in the history
  • Loading branch information
orenyomtov committed Oct 16, 2023
1 parent ea875fb commit 7406b45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export class FireblocksWeb3Provider extends HttpProvider {
} catch (e) {
error = e;
}

if (error) {
logRequestsAndResponses(`Error #${requestNumber}: ${error}`)
} else {
Expand All @@ -361,6 +361,10 @@ export class FireblocksWeb3Provider extends HttpProvider {
gas: tx.gas ? Number(tx.gas) : undefined,
})));

if (!searchParams.get('gasPrice') && tx.maxFeePerGas) {
searchParams.set('gasPrice', tx.maxFeePerGas)
}

return `https://dashboard.tenderly.co/simulator/new?${searchParams.toString()}`
}

Expand Down

0 comments on commit 7406b45

Please sign in to comment.