Skip to content

Commit

Permalink
vm: requests do not throw if code is non-existant
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Aug 19, 2024
1 parent 6162957 commit 2043d1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vm/src/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const accumulateEIP7002Requests = async (
const code = await vm.stateManager.getCode(withdrawalsAddress)

if (code.length === 0) {
throw new Error(
/*throw new Error(
'Attempt to accumulate EIP-7002 requests failed: the contract does not exist. Ensure the deployment tx has been run, or that the required contract code is stored',
)
)*/
}

const systemAddressBytes = bigIntToAddressBytes(vm.common.param('systemAddress'))
Expand Down Expand Up @@ -119,9 +119,9 @@ const accumulateEIP7251Requests = async (
const code = await vm.stateManager.getCode(consolidationsAddress)

if (code.length === 0) {
throw new Error(
/*throw new Error(
'Attempt to accumulate EIP-7251 requests failed: the contract does not exist. Ensure the deployment tx has been run, or that the required contract code is stored',
)
)*/
}

const systemAddressBytes = bigIntToAddressBytes(vm.common.param('systemAddress'))
Expand Down

0 comments on commit 2043d1e

Please sign in to comment.