Skip to content

Commit

Permalink
Merge pull request #26 from multiversx/multisig
Browse files Browse the repository at this point in the history
Register Operations logic
  • Loading branch information
sasurobert authored Feb 20, 2024
2 parents 932feb2 + 5391e54 commit 5cb20d2
Show file tree
Hide file tree
Showing 15 changed files with 2,868 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/on_pull_request_build_contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: On pull request, build contracts

on:
pull_request:

permissions:
contents: write

jobs:
build:
uses: multiversx/mx-sc-actions/.github/workflows/[email protected]
with:
image_tag: v5.4.1
package_whole_project_src: true
8 changes: 4 additions & 4 deletions common/token-whitelist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub trait TokenWhitelistModule:
return;
}

let token_list = self.verfiy_items_signature(opt_signature, tokens);
let token_list = self.verify_items_signature(opt_signature, tokens);
self.token_whitelist().extend(&token_list);
}

Expand All @@ -39,7 +39,7 @@ pub trait TokenWhitelistModule:
return;
}

let token_list = self.verfiy_items_signature(opt_signature, tokens);
let token_list = self.verify_items_signature(opt_signature, tokens);
self.remove_items(&mut self.token_whitelist(), &token_list);
}

Expand All @@ -64,7 +64,7 @@ pub trait TokenWhitelistModule:
return;
}

let token_list = self.verfiy_items_signature(opt_signature, tokens);
let token_list = self.verify_items_signature(opt_signature, tokens);
self.token_blacklist().extend(&token_list);
}

Expand All @@ -81,7 +81,7 @@ pub trait TokenWhitelistModule:
return;
}

let token_list = self.verfiy_items_signature(opt_signature, tokens);
let token_list = self.verify_items_signature(opt_signature, tokens);
self.remove_items(&mut self.token_blacklist(), &token_list);
}

Expand Down
2 changes: 1 addition & 1 deletion common/utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub trait UtilsModule: bls_signature::BlsSignatureModule {
first_payment
}

fn verfiy_items_signature<T: TopDecode + NestedEncode + ManagedVecItem>(
fn verify_items_signature<T: TopDecode + NestedEncode + ManagedVecItem>(
&self,
opt_signature: Option<BlsSignature<Self::Api>>,
items: MultiValueEncoded<T>,
Expand Down
8 changes: 4 additions & 4 deletions esdt-safe/src/to_sovereign/create_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub trait CreateTxModule:
return;
}

let all_tokens = self.verfiy_items_signature(opt_signature, tokens);
let all_tokens = self.verify_items_signature(opt_signature, tokens);
self.burn_tokens().extend(&all_tokens);
}

Expand All @@ -74,7 +74,7 @@ pub trait CreateTxModule:
return;
}

let all_tokens = self.verfiy_items_signature(opt_signature, tokens);
let all_tokens = self.verify_items_signature(opt_signature, tokens);
self.remove_items(&mut self.burn_tokens(), &all_tokens);
}

Expand All @@ -91,7 +91,7 @@ pub trait CreateTxModule:
return;
}

let all_names = self.verfiy_items_signature(opt_signature, names);
let all_names = self.verify_items_signature(opt_signature, names);
self.banned_endpoint_names().extend(&all_names);
}

Expand All @@ -108,7 +108,7 @@ pub trait CreateTxModule:
return;
}

let all_names = self.verfiy_items_signature(opt_signature, names);
let all_names = self.verify_items_signature(opt_signature, names);
self.remove_items(&mut self.banned_endpoint_names(), &all_names);
}

Expand Down
Loading

0 comments on commit 5cb20d2

Please sign in to comment.