Can't call function of contact with abi instance on fuels 0.54.0

Hi guys!

I have created instance of oracle smart contract that and want to call fn get_price but keep getting error like this:

Oracle code :
Oracle abi :
Node url :
Fuels: 0.54.0

 const oracleContract = OracleAbi__factory.connect(
        new Provider(NODE_URL)

const response = await oracleContract.functions

Found solution
I had to provide wallet instance with seed phrase that has ETH on account, otherwise dryRun doesn’t work on account without ETH on balance. Is it feature or bug?

details are here:

1 Like

Hi there!
Taken from fuels-ts docs

Note: Although a simulate() call won't modify the blockchain's state and does not spend resources, the transaction must still meet its requirements to be considered valid.

So it seems like a feature.

Actually, this is a bug — follow-up issue here:

The reason it was indirectly fixed by adding the Wallet instance is probably due to the resulting increased latency in the code execution, which created an opportunity for the initialization to finish.

1 Like