Calling hooks in real world component

Try hardcoding the contratc address and see if it works

set it as
export const _contractTea = “0x636c5AC57F13DdAB170d4064F0A3EB3f2949B885”;

still getting invalid address or ENS name (argument=“name”, value=0, code=INVALID_ARGUMENT,

Then you should import it properly where it’s required.

all types of bugs on this thing mane…

const encodedFunction = new web3.eth.abi.encodeFunctionCall({

gets this error this.encodeFunctionSignature is not a function
tried skipping the fancy stuff and use web3… still issues

invalid address or ENS name (argument=“name”, value=0, code=INVALID_ARGUMENT, version=contracts/5.6.0)

Is your wallet’s chain on Goerli testnet?

const encodedFunction = new web3.eth.abi.encodeFunctionCall({

Check the web3.js docs for usage.

I agree with you, docs rly very bad . It could be improved!