Hi, I'm trying this
$contract->bytecode($bytecode)->estimateGas($params, $callback);
to estimate cost for deploying my contract. this is my actual code: -
when i tried in ganache and testnet. both giving me this error.
I tried google it but so far no luck. anyone can help?
Hi, I'm trying this $contract->bytecode($bytecode)->estimateGas($params, $callback); to estimate cost for deploying my contract. this is my actual code: -![image](https://user-images.githubusercontent.com/81343037/182591868-f3802c15-80cc-452f-b9a0-5fcfe8f90326.png)
when i tried in ganache and testnet. both giving me this error.![image](https://user-images.githubusercontent.com/81343037/182592322-a08a88c4-f572-417e-9e17-19a2dee8a83a.png)
I tried google it but so far no luck. anyone can help?