mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 18:57:57 +00:00
contracts: Upgrade to wasmi 0.28 (#13312)
* Upgrade to wasmi 0.28 * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts * Update stale comment * Renamed variants of `Determinism` * Compile fix --------- Co-authored-by: command-bot <>
This commit is contained in:
committed by
GitHub
parent
d5650ba07b
commit
82cb69922f
@@ -509,9 +509,9 @@ pub mod pallet {
|
||||
/// the in storage version to the current
|
||||
/// [`InstructionWeights::version`](InstructionWeights).
|
||||
///
|
||||
/// - `determinism`: If this is set to any other value but [`Determinism::Deterministic`]
|
||||
/// then the only way to use this code is to delegate call into it from an offchain
|
||||
/// execution. Set to [`Determinism::Deterministic`] if in doubt.
|
||||
/// - `determinism`: If this is set to any other value but [`Determinism::Enforced`] then
|
||||
/// the only way to use this code is to delegate call into it from an offchain execution.
|
||||
/// Set to [`Determinism::Enforced`] if in doubt.
|
||||
///
|
||||
/// # Note
|
||||
///
|
||||
@@ -625,8 +625,8 @@ pub mod pallet {
|
||||
storage_deposit_limit: storage_deposit_limit.map(Into::into),
|
||||
debug_message: None,
|
||||
};
|
||||
let mut output = CallInput::<T> { dest, determinism: Determinism::Deterministic }
|
||||
.run_guarded(common);
|
||||
let mut output =
|
||||
CallInput::<T> { dest, determinism: Determinism::Enforced }.run_guarded(common);
|
||||
if let Ok(retval) = &output.result {
|
||||
if retval.did_revert() {
|
||||
output.result = Err(<Error<T>>::ContractReverted.into());
|
||||
@@ -1096,7 +1096,7 @@ impl<T: Config> Invokable<T> for InstantiateInput<T> {
|
||||
binary.clone(),
|
||||
&schedule,
|
||||
common.origin.clone(),
|
||||
Determinism::Deterministic,
|
||||
Determinism::Enforced,
|
||||
TryInstantiate::Skip,
|
||||
)
|
||||
.map_err(|(err, msg)| {
|
||||
|
||||
Reference in New Issue
Block a user