I am trying to interact with a smart contract i deployed half a year ago (before EIP1559)
my truffle config is setup as follows for the main eth network:
main: {
provider: () => new HDWalletProvider(pkArrayMain, mainSpeedyNode, 0, 6),
network_id: 1, // Main's id
gas: 6700000,
gasPrice: 20000000000,
confirmations: 2,
timeoutBlocks: 50,
skipDryRun: true,
},
then go into the truffle console using
truffle console --network main
then when im in the truffle console I run
const instance = await MyContract.deployed();
await instance.cap();
then i get hit with the following error
Uncaught:
{
code: -32000,
message: 'err: insufficient funds for gas * price + value: address ###i have delete my address for privacy### have 0 want 10000000000000000000 (supplied gas 50000000)'
}
why is it asking for eth when im simplying trying to call a view function?
I followed the exact same steps on the contract i deployed on Rinkeby and it worked how it expected it.
has there been some change since eip1559 that call functions now require gas???
its an old project which i havent updated the packages so im running @truffle/hdwallet-provider": “^1.6.0”.
any help would be really appreciated as its taking me ages to sort out a problem that shouldnt even be there.
If more info is required please let me know.
Thanks in advance.