Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/fix-pre-revert' into cus…
Browse files Browse the repository at this point in the history
…tom-implementation
  • Loading branch information
ignasirv committed Feb 21, 2024
2 parents 2349ebf + 177edbd commit d13f960
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/vm/src/evm/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,11 @@ export default class EVM {
debug(`Run precompile`)
}
const unsupportedPrecompileds = [
new Address(Buffer.from('0000000000000000000000000000000000000003', 'hex')), //ripemd-160
new Address(Buffer.from('0000000000000000000000000000000000000009', 'hex')), //blake
]
if (unsupportedPrecompileds.includes(message.to)) {
'0x0000000000000000000000000000000000000003', // RIPEMD-160
'0x0000000000000000000000000000000000000005', // modexp
'0x0000000000000000000000000000000000000009', // blake
];
if (unsupportedPrecompileds.includes(message.to.toString())) {
result = {
returnValue: Buffer.alloc(0),
gasUsed: new BN(0),
Expand Down

0 comments on commit d13f960

Please sign in to comment.