fix: sepolia balance
This commit is contained in:
parent
8e8c16142d
commit
6e44165b51
|
@ -88,8 +88,6 @@ var propagateErrors = []error{
|
||||||
vm.ErrInvalidCode,
|
vm.ErrInvalidCode,
|
||||||
vm.ErrNonceUintOverflow,
|
vm.ErrNonceUintOverflow,
|
||||||
|
|
||||||
core.ErrInsufficientFunds,
|
|
||||||
|
|
||||||
// Used by balance history to check state
|
// Used by balance history to check state
|
||||||
ethereum.NotFound,
|
ethereum.NotFound,
|
||||||
bind.ErrNoCode,
|
bind.ErrNoCode,
|
||||||
|
@ -161,10 +159,14 @@ func isVMError(err error) bool {
|
||||||
if strings.HasPrefix(err.Error(), "execution reverted") {
|
if strings.HasPrefix(err.Error(), "execution reverted") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if strings.Contains(err.Error(), core.ErrInsufficientFunds.Error()) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
for _, vmError := range propagateErrors {
|
for _, vmError := range propagateErrors {
|
||||||
if err == vmError || strings.Contains(err.Error(), vmError.Error()) {
|
if err == vmError {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue