contracts: Refactor instantiate with code#14503
contracts: Refactor instantiate with code#14503paritytech-processbot[bot] merged 31 commits intomasterfrom
Conversation
d8f2b02 to
48e5a34
Compare
|
bot bench $ pallet dev pallet_contracts |
|
@pgherveou https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3115214 was started for your command Comment |
|
@pgherveou Command |
703115a to
6a2aa17
Compare
|
bot rebase |
|
Rebased |
|
Does it fix #14494? |
|
bot bench $ pallet dev pallet_contracts |
|
@pgherveou https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3130950 was started for your command Comment |
|
@pgherveou Command |
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com>
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com>
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com>
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com>
|
bot bench $ pallet dev pallet_contracts |
|
@pgherveou https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3139251 was started for your command Comment |
|
@pgherveou Command |
|
The +155% performance decrease for seal_ecdsa is related to this PR that revert a recent attempt to start using a C lib instead of k256 see #14499 |
|
bot merge |
* wip * fixes * rm comment * join fns * clippy * Fix limits * reduce diff * fix * fix * fix typo * refactor store to use self * refactor run to take self by value * pass tests * rm comment * fixes * fix typo * rm * fix fmt * clippy * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts * Update frame/contracts/src/lib.rs Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> * Update frame/contracts/src/wasm/mod.rs Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> * Update frame/contracts/src/wasm/mod.rs Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> * PR review, rm duplicate increment_refcount * PR review * Update frame/contracts/src/wasm/prepare.rs Co-authored-by: Sasha Gryaznov <hi@agryaznov.com> * Add test for failing storage_deposit * fix lint * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts --------- Co-authored-by: command-bot <> Co-authored-by: Sasha Gryaznov <hi@agryaznov.com>

Refactor
instantiate_with_code, so that it always store the code first and then instantiate the contract.This simplify the logic a bit and ensure that
CodeInfois always in storage before the code is instantiated.Fixes #14494