Open jewelzms opened 1 year ago
Install move-cli Unable to generate ABI when feature address20 or feature address32 is enabled.
# cargo install --features address20 --path language/tools/move-cli
build move contract No ABI is generated when building, nor are there any error messages.
# move build --abi
Module type judgment logic error.
// language/move-model/src/ast.rs pub fn is_script(&self) -> bool { static MAX_ADDR: Lazy<BigUint> = Lazy::new(|| { BigUint::from_str_radix("ffffffffffffffffffffffffffffffff", 16).expect("valid hex") }); self.0 == *MAX_ADDR }
// language/move-model/src/ast.rs pub fn is_script(&self) -> bool { static MAX_ADDR: Lazy<BigUint> = Lazy::new(|| { use move_core_types::account_address::AccountAddress; BigUint::from_bytes_be(&[0xff; AccountAddress::LENGTH].to_vec()) }); self.0 == *MAX_ADDR }
🐛 Bug
To reproduce
Install move-cli Unable to generate ABI when feature address20 or feature address32 is enabled.
build move contract No ABI is generated when building, nor are there any error messages.
Reason
Module type judgment logic error.
Error code segment
Fix suggestion