Skip to content

Commit

Permalink
Merge pull request #205 from darthsiroftardis/fix-rename-package
Browse files Browse the repository at this point in the history
Address refactor of Package to SmartContract
  • Loading branch information
darthsiroftardis authored Nov 25, 2024
2 parents a71efe0 + 14058a2 commit ccbd301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cli/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ fn contract_hash(value: &str) -> Result<Option<HashAddr>, CliError> {
match Digest::from_hex(value) {
Ok(digest) => Ok(Some(digest.value())),
Err(error) => match Key::from_formatted_str(value) {
Ok(Key::Hash(hash)) | Ok(Key::Package(hash)) => Ok(Some(hash)),
Ok(Key::Hash(hash)) | Ok(Key::SmartContract(hash)) => Ok(Some(hash)),
_ => Err(CliError::FailedToParseDigest {
context: "contract hash",
error,
Expand Down
2 changes: 1 addition & 1 deletion src/transaction/creation_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ pub(super) mod package_addr {
error,
})?;
match package_addr {
Key::Package(package_addr) => Ok(package_addr),
Key::SmartContract(package_addr) => Ok(package_addr),
_ => Err(CliError::Core(Error::InvalidKeyVariant {
expected_variant: "Package Address".to_string(),
actual: package_addr,
Expand Down

0 comments on commit ccbd301

Please sign in to comment.