Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #15 from casper-ecosystem/rust-toolchain-fix
Browse files Browse the repository at this point in the history
Old toolchain gives zeroize error on cloning
  • Loading branch information
Maciej Zieliński authored Aug 6, 2021
2 parents 25358cd + 28ec2a9 commit 1d37e76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contract/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub enum Error {
ThresholdViolation = 3,
MaxKeysLimit = 4,
DuplicateKey = 5,
KeyManagementThresholdError = 6,
DeploymentThresholdError = 7,
KeyManagementThreshold = 6,
DeploymentThreshold = 7,
InsufficientTotalWeight = 8,
MissingArgument0 = 20,
MissingArgument1 = 21,
Expand Down
4 changes: 2 additions & 2 deletions contract/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ fn update_key_weight(account: AccountHash, weight: Weight) {
fn set_threshold(permission_level: ActionType, threshold: Weight) -> Result<(), Error> {
match account::set_action_threshold(permission_level, threshold) {
Ok(()) => Ok(()),
Err(SetThresholdFailure::KeyManagementThreshold) => Err(Error::KeyManagementThresholdError),
Err(SetThresholdFailure::DeploymentThreshold) => Err(Error::DeploymentThresholdError),
Err(SetThresholdFailure::KeyManagementThreshold) => Err(Error::KeyManagementThreshold),
Err(SetThresholdFailure::DeploymentThreshold) => Err(Error::DeploymentThreshold),
Err(SetThresholdFailure::PermissionDeniedError) => Err(Error::PermissionDenied),
Err(SetThresholdFailure::InsufficientTotalWeight) => Err(Error::InsufficientTotalWeight),
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2020-12-16
nightly-2021-06-17

0 comments on commit 1d37e76

Please sign in to comment.