nervosnetwork / capsule

Capsule is an out-of-box development framework for creating smart contract on Nervos' CKB.
MIT License
60 stars 34 forks source link

feat: build_script using ScriptHashType::Type #128

Closed jjyr closed 1 year ago

jjyr commented 1 year ago

This PR changes script_hash in build_script from Data1 to Type.

Users should assume build_script always return a script run on the newest VM. To use a specific version, they must explicitly pass Datax hash_type to build_script_with_hash_type.