Skip to content

Commit

Permalink
fix: safeTxGas estimation parse for Ethers v6 (safe-global#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniSomoza authored Nov 16, 2023
1 parent d8b254e commit 46ba3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/protocol-kit/src/utils/transactions/gas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function parseSafeTxGasErrorResponse(error: any) {
// Ethers v6
const Ethersv6RevertData = error?.info?.error?.data
if (Ethersv6RevertData) {
return decodeSafeTxGas(Ethersv6RevertData)
return decodeSafeTxGas(Ethersv6RevertData?.originalError?.data || Ethersv6RevertData)
}

// Web3 v1
Expand Down

0 comments on commit 46ba3ec

Please sign in to comment.