sporeprotocol / spore-scrum

0 stars 0 forks source link

Generate hardcoded `code_hash` via `build.rs` files #5

Closed ashuralyk closed 11 months ago

ashuralyk commented 11 months ago

Description

current hardcoded code hashes are generated manually via running test case test_code_hashes() and then copy/paste its console print, however, this can only be available in a same mode like debug or release, for example, if code hashes are generated in release mode, running test cases in debug mode would fail

if we put the generation process of code hash in a build.rs file, which would be executed every time before the compiling, it would be easier to maintain spore-contracts repository

Tasks list

ashuralyk commented 11 months ago

https://github.com/sporeprotocol/spore-contract/pull/20