ethereum-react-native-boilerplate icon indicating copy to clipboard operation
ethereum-react-native-boilerplate copied to clipboard

call smart contract function

Open viet97 opened this issue 2 years ago • 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!

viet97 avatar Mar 15 '22 09:03 viet97

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 ?

ArbitechSolution avatar Aug 26 '22 11:08 ArbitechSolution

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

viet97 avatar Aug 26 '22 11:08 viet97