Skip to content

Commit

Permalink
fix: missing nonce setter for AccountDeploymentV3
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed May 1, 2024
1 parent f9f171b commit 6a94a0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions starknet-accounts/src/factory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ impl<'f, F> AccountDeploymentV3<'f, F> {
}
}

pub fn nonce(self, nonce: FieldElement) -> Self {
Self {
nonce: Some(nonce),
..self
}
}

pub fn gas(self, gas: u64) -> Self {
Self {
gas: Some(gas),
Expand Down

0 comments on commit 6a94a0d

Please sign in to comment.