Keep getting this error when simulate fn in my contract
This error doesn’t allow me to read message error why I couldn’t get value.
Fuels version is 0.55.0
const wallet = accountStore.walletToRead;
if (wallet == null) return;
const { market } = this.rootStore.settingsStore.currentVersionConfig;
const marketContract = MarketAbi__factory.connect(market, wallet);
const { addressInput } = this.rootStore.accountStore;
if (addressInput == null) return;
const { priceOracle } = this.rootStore.settingsStore.currentVersionConfig;
const oracle = new Contract(
priceOracle,
OracleAbi__factory.abi,
this.rootStore.accountStore.provider
);
const { value } = await marketContract.functions
.available_to_borrow(addressInput)
.callParams({ gasLimit: 10000 })
.addContracts([oracle])
.simulate();
this.setMaxBorrowBaseTokenAmount(new BN(value.toString()));
};
Function that I call