To add an ABI, use the addABI()
method.
const isAdded = await fuel.addABI(contractId, abi);
console.log("ABI is added", isAdded);
* Input's initial contractId and ABI are from Â
SwaySwap To retrieve the ABI of a contract, use the getAbi()
method.
const abiInfo = await fuel.getABI(contractId);
console.log("Abi ", abiInfo);