You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
catch (err) {
// ethersjs currently doesnt throw for custom solidity errors, so we shouldn't end up here
// however we try to catch and parse the error anyway in case ethersjs changes
// behaviour and we dont pick up on it
retryable = retryableData_1.RetryableDataTools.tryParseError(err);
if (!(0, lib_1.isDefined)(retryable)) {
throw new errors_1.ArbSdkError('No retryable data found in error', err);
}
}
Metamask extension throws an error in populateFunctionParams after a recent update, so we do end up here
original error is stored at err.error.data.originalError.data
I was able to fix this issue in my setup by modifying the catch block as follows:
catch (err) {
// ethersjs currently doesnt throw for custom solidity errors, so we shouldn't end up here
// however we try to catch and parse the error anyway in case ethersjs changes
// behaviour and we dont pick up on it
const res = err.error?.data?.originalError?.data ?? err
retryable = retryableData_1.RetryableDataTools.tryParseError(res);
if (!(0, lib_1.isDefined)(retryable)) {
throw new errors_1.ArbSdkError('No retryable data found in error', err);
}
}
The text was updated successfully, but these errors were encountered:
https://github.com/OffchainLabs/arbitrum-sdk/blame/792a7ee3ccf09842653bc49b771671706894cbb4/src/lib/message/ParentToChildMessageGasEstimator.ts#L327C7-L327C7
Metamask extension throws an error in populateFunctionParams after a recent update, so we do end up here
original error is stored at
err.error.data.originalError.data
I was able to fix this issue in my setup by modifying the catch block as follows:
The text was updated successfully, but these errors were encountered: