new ethers.utils.Interface(["function getVal()"]);
const getValData = getValInterface.encodeFunctionData("getVal");
const txData = {from: userAddr, to: proxyAddr, data: getValData};
await user.sendTransaction(txData);
Is this right? A bit tedious to me. There must be simpler ways.
First one isn't working?
It returns "TypeError: proxy.getVal is not a function".
Обсуждают сегодня