Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

How to use truffle-hdwallet-provider to call the contract function,can you give a demo,I got some errs. #93

Open
superman285 opened this issue Feb 19, 2019 · 0 comments

Comments

@superman285
Copy link

let note = ctx.request.body.note,
uid = ctx.request.body.uid;
var noteContractObj = new web3.eth.Contract(abi,contractAddr);
await noteContractObj.methods.addNote(note).send({
from:uid,
gas:300000,
},(err,result)=>{}

the varibles I used I have defined ,but i can not call the function from my contract,how should i do?
is my format wrong?
can you give a demo to call the function with param from contract?thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant