contracts: Add instantiation_nonce API#12800
Conversation
2bb74c8 to
0df52b8
Compare
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com>
|
/cmd queue -c bench-bot $ pallet dev pallet_contracts |
|
@athei https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2108011 was started for your command Comment |
|
@athei Command |
|
bot merge |
* Add `instantiation_nonce` API * Fixes for tests * Update frame/contracts/src/schedule.rs Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> Co-authored-by: command-bot <>
* Add `instantiation_nonce` API * Fixes for tests * Update frame/contracts/src/schedule.rs Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> Co-authored-by: command-bot <>
|
This pull request has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/exploring-beefy-authority-set-subsampling-optimisations/3106/1 |
This adds a new interface that allows contracts to get a per contract instantiation nonce. It is a useful default for a salt on instantiation. Needed by solidity to support the CRATE instruction which doesn't take a salt.
Right now Solang uses the random API which we are about to deprecate.