mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
contracts: Companion for offchain indeterminism (#1794)
* Adapt to new pallet contracts API
* Fix
* Fix runtime APIs
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
7ad763f9bd
commit
f73f661319
Generated
+187
-187
File diff suppressed because it is too large
Load Diff
@@ -524,6 +524,7 @@ impl_runtime_apis! {
|
|||||||
storage_deposit_limit,
|
storage_deposit_limit,
|
||||||
input_data,
|
input_data,
|
||||||
contracts::CONTRACTS_DEBUG_OUTPUT,
|
contracts::CONTRACTS_DEBUG_OUTPUT,
|
||||||
|
pallet_contracts::Determinism::Deterministic,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -553,8 +554,14 @@ impl_runtime_apis! {
|
|||||||
origin: AccountId,
|
origin: AccountId,
|
||||||
code: Vec<u8>,
|
code: Vec<u8>,
|
||||||
storage_deposit_limit: Option<Balance>,
|
storage_deposit_limit: Option<Balance>,
|
||||||
|
determinism: pallet_contracts::Determinism,
|
||||||
) -> pallet_contracts_primitives::CodeUploadResult<Hash, Balance> {
|
) -> pallet_contracts_primitives::CodeUploadResult<Hash, Balance> {
|
||||||
Contracts::bare_upload_code(origin, code, storage_deposit_limit)
|
Contracts::bare_upload_code(
|
||||||
|
origin,
|
||||||
|
code,
|
||||||
|
storage_deposit_limit,
|
||||||
|
determinism,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_storage(
|
fn get_storage(
|
||||||
|
|||||||
Reference in New Issue
Block a user