ethereum-boilerplate/ethereum-react-native-boilerplate

call smart contract function

viet97 opened this issue · 2 comments

i have a function name payToMint provide by my smart contract.
const contract = new web3.eth.Contract(abi, contractAddress); contract.methods.payToMint(walletAddress, uri).send({ from: walletAddress, value: Moralis.Units.ETH(0.001) }).then(response => { console.log("response", response) })
Screen Shot 2022-03-15 at 16 48 40

but i always get this error:
2022-03-15 16 56 06

do anyone how to solve this problem ? please help me. thanksss!

i have a function name payToMint provide by my smart contract. const contract = new web3.eth.Contract(abi, contractAddress); contract.methods.payToMint(walletAddress, uri).send({ from: walletAddress, value: Moralis.Units.ETH(0.001) }).then(response => { console.log("response", response) }) Screen Shot 2022-03-15 at 16 48 40

but i always get this error: 2022-03-15 16 56 06

do anyone how to solve this problem ? please help me. thanksss!

Have you soved this ?

i have a function name payToMint provide by my smart contract. const contract = new web3.eth.Contract(abi, contractAddress); contract.methods.payToMint(walletAddress, uri).send({ from: walletAddress, value: Moralis.Units.ETH(0.001) }).then(response => { console.log("response", response) }) Screen Shot 2022-03-15 at 16 48 40

but i always get this error: 2022-03-15 16 56 06

do anyone how to solve this problem ? please help me. thanksss!

Have you soved this ?

Yes i've