nervosnetwork / ckb

The Nervos CKB is a public permissionless blockchain, and the layer 1 of Nervos network.
https://www.nervos.org
MIT License
1.15k stars 228 forks source link

script(fuzz): fixed the issue where data1 verifier always returns invalid version error #4493

Closed mohanson closed 3 months ago

mohanson commented 3 months ago

What problem does this PR solve?

Problem Summary:

Data1 verifier always returns Err(Error { kind: Script, inner: TransactionScriptError { source: Inputs[0].Lock, cause: Invalid VM Version: 1 } }).

What's Changed:

Use the correct hardfork writing to make ckb2021 and ckb2023 always effective in the three fuzz targets. There are no issues with Data0 and Data2 fuzz target at the moment, but I still made same changes to them.

Related changes

Check List

Tests

Release note

Title Only: Include only the PR title in the release note.