-> snippet of what I am trying to do.
-> tested with multiple contracts from abstract.
-> output is [].
-> version 0.21.0
const { whatsabi } = require("@shazow/whatsabi");
const { JsonRpcProvider } = require("ethers");
const provider = new JsonRpcProvider("https://api.mainnet.abs.xyz");
provider.getCode("0x85Ca16Fd0e81659e0b8Be337294149E722528731").then(code => {
console.log(whatsabi.selectorsFromBytecode(code));
});
feel free to ask me if anything is missing in my issue and feel free to tell me if I misunderstood something. thanks !
-> snippet of what I am trying to do.
-> tested with multiple contracts from abstract.
-> output is [].
-> version 0.21.0