Skip to content

Commit

Permalink
Migrate to channel nonces (#854)
Browse files Browse the repository at this point in the history
commit-id:44d37d6d
  • Loading branch information
tarrencev authored Oct 17, 2024
1 parent 2c52373 commit e01f22b
Show file tree
Hide file tree
Showing 16 changed files with 18,798 additions and 19,613 deletions.
7 changes: 2 additions & 5 deletions Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
[workspace]
members = [
"packages/contracts/controller",
"packages/contracts/resolver",
]
members = ["packages/contracts/controller", "packages/contracts/resolver"]

[workspace.package]
edition = "2023_10"
Expand All @@ -16,4 +13,4 @@ alexandria_merkle_tree = { git = "https://github.com/piniom/quaireaux.git", rev
alexandria_data_structures = { git = "https://github.com/piniom/quaireaux.git", rev = "b51ccc3" }
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.27.0" }
openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", rev = "a13bae3" }
argent = { git = "https://github.com/cartridge-gg/argent-contracts-starknet.git", rev = "daa8200" }
argent = { git = "https://github.com/cartridge-gg/argent-contracts-starknet.git", rev = "1432f85" }
3 changes: 2 additions & 1 deletion packages/account-wasm/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use account_sdk::utils::time::get_current_timestamp;
use serde_wasm_bindgen::to_value;
use starknet::accounts::{Account, ConnectedAccount};
use starknet::signers::SigningKey;
use starknet_types_core::felt::Felt;
use url::Url;
use wasm_bindgen::prelude::*;

Expand Down Expand Up @@ -156,7 +157,7 @@ impl CartridgeSessionAccount {
execute_after: 0_u64,
execute_before: now + 600,
calls,
nonce: SigningKey::from_random().secret_scalar(),
nonce: (SigningKey::from_random().secret_scalar(), Felt::ZERO),
};

let signed = self
Expand Down
1 change: 0 additions & 1 deletion packages/account-wasm/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use tsify_next::Tsify;
pub(crate) mod call;
pub(crate) mod estimate;
pub(crate) mod invocation;
pub(crate) mod outside_execution;
pub(crate) mod policy;
pub(crate) mod session;
pub(crate) mod signer;
Expand Down
60 changes: 0 additions & 60 deletions packages/account-wasm/src/types/outside_execution.rs

This file was deleted.

Large diffs are not rendered by default.

Loading

0 comments on commit e01f22b

Please sign in to comment.