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

Old toolchain gives zeroize error on cloning #15

Merged
merged 2 commits into from
Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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