Skip to content

Commit

Permalink
fix: Unable to generate ABI when feature address20 or feature address…
Browse files Browse the repository at this point in the history
…32 is enabled.
  • Loading branch information
jewelzms committed Aug 31, 2024
1 parent c453c90 commit 5ef13b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion language/move-model/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,8 @@ impl ModuleName {
/// for pseudo modules created from scripts, so use this address to check.
pub fn is_script(&self) -> bool {
static MAX_ADDR: Lazy<BigUint> = Lazy::new(|| {
BigUint::from_str_radix("ffffffffffffffffffffffffffffffff", 16).expect("valid hex")
use move_core_types::account_address::AccountAddress;
BigUint::from_bytes_be(&[0xff; AccountAddress::LENGTH].to_vec())
});
self.0 == *MAX_ADDR
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.65.0
1.70.0

0 comments on commit 5ef13b7

Please sign in to comment.