Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A0-1902: update to 0.9.33 #923

Merged
merged 13 commits into from
Feb 17, 2023
454 changes: 219 additions & 235 deletions Cargo.lock

Large diffs are not rendered by default.

153 changes: 77 additions & 76 deletions aleph-client/Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions aleph-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ subxt = "0.25.0"
futures = "0.3.25"
serde = { version = "1.0", features = ["derive"] }

frame-support = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.32" }
sp-runtime = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.32" }
pallet-contracts-primitives = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.32" }
frame-support = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.33" }
sp-runtime = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.33" }
pallet-contracts-primitives = { git = "https://github.com/Cardinal-Cryptography/substrate.git", branch = "aleph-v0.9.33" }
primitives = { path = "../primitives" }

[dev-dependencies]
Expand Down
378 changes: 265 additions & 113 deletions aleph-client/src/aleph_zero.rs

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions aleph-client/src/pallets/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ use pallet_contracts_primitives::ContractExecResult;
use subxt::{ext::sp_core::Bytes, rpc_params};

use crate::{
api, pallet_contracts::wasm::OwnerInfo, sp_weights::weight_v2::Weight, AccountId, Balance,
BlockHash, CodeHash, ConnectionApi, SignedConnectionApi, TxInfo, TxStatus,
api,
pallet_contracts::wasm::{Determinism, OwnerInfo},
sp_weights::weight_v2::Weight,
AccountId, Balance, BlockHash, CodeHash, ConnectionApi, SignedConnectionApi, TxInfo, TxStatus,
};

/// Arguments to [`ContractRpc::call_and_get`].
Expand Down Expand Up @@ -42,6 +44,7 @@ pub trait ContractsUserApi {
&self,
code: Vec<u8>,
storage_limit: Option<Compact<Balance>>,
determinism: Determinism,
status: TxStatus,
) -> anyhow::Result<TxInfo>;

Expand Down Expand Up @@ -115,9 +118,12 @@ impl<S: SignedConnectionApi> ContractsUserApi for S {
&self,
code: Vec<u8>,
storage_limit: Option<Compact<Balance>>,
determinism: Determinism,
status: TxStatus,
) -> anyhow::Result<TxInfo> {
let tx = api::tx().contracts().upload_code(code, storage_limit);
let tx = api::tx()
.contracts()
.upload_code(code, storage_limit, determinism);

self.send_tx(tx, status).await
}
Expand Down
Loading