Skip to content

Commit

Permalink
fix: [NO-JIRA] Tenderly gas simulation error logging (#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamoftrees authored May 3, 2024
1 parent e9f3650 commit d6c6d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/internal/bridge/sdk/src/tokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ export class TokenBridge {
for (let i = 0; i < simResults.length; i++) {
if (simResults[i].simulation.error_message) {
throw new BridgeError(
`Estimating deposit gas failed with the reason: ${simResults[0].simulation.error_message}`,
`Estimating deposit gas failed with the reason: ${simResults[i].simulation.error_message}`,
BridgeErrorType.TENDERLY_GAS_ESTIMATE_FAILED,
);
}
Expand Down

0 comments on commit d6c6d60

Please sign in to comment.