Skip to content

Commit

Permalink
fn name
Browse files Browse the repository at this point in the history
  • Loading branch information
hal3e committed Feb 27, 2025
1 parent 9c63e7d commit 9dc9e4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/fuels-core/src/types/transaction_builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ macro_rules! impl_tx_builder_trait {


fn add_signer(&mut self, signer: impl Signer + Send + Sync) -> Result<&mut Self> {
self.check_signer_address(signer.address())?;
self.validate_no_signer_available(signer.address())?;


let index_offset = self.unresolved_signers.len() as u64;
Expand All @@ -204,7 +204,7 @@ macro_rules! impl_tx_builder_trait {

fn add_signers<'a>(&mut self, signers: impl IntoIterator<Item=&'a std::sync::Arc<dyn Signer + Send + Sync>>) -> Result<&mut Self> {
for signer in signers {
self.check_signer_address(signer.address())?;
self.validate_no_signer_available(signer.address())?;

let index_offset = self.unresolved_signers.len() as u64;
self.unresolved_witness_indexes
Expand Down Expand Up @@ -313,7 +313,7 @@ macro_rules! impl_tx_builder_trait {
}

impl $ty {
fn check_signer_address(&self, address: &$crate::types::bech32::Bech32Address) -> Result<()> {
fn validate_no_signer_available(&self, address: &$crate::types::bech32::Bech32Address) -> Result<()> {
if self
.unresolved_witness_indexes
.owner_to_idx_offset
Expand Down

0 comments on commit 9dc9e4c

Please sign in to comment.