E0048: ABI Method Not Found
A method call was attempted on a narrowed ABI variable, but the ABI does not declare a method with that name.
Example (error)
abi MyAbi {
fn transfer(amount: i64) -> bool;
}
fn test(x: Utxo) {
if x is MyAbi {
x.unknown_method(); // Error: MyAbi has no method named unknown_method
}
}
Fix
Use a method declared in the ABI:
fn test(x: Utxo) {
if x is MyAbi {
x.transfer(100); // OK
}
}