Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with parameter vs to: address #135

Open
skybutter798 opened this issue Jul 5, 2022 · 0 comments
Open

Issue with parameter vs to: address #135

skybutter798 opened this issue Jul 5, 2022 · 0 comments

Comments

@skybutter798
Copy link

skybutter798 commented Jul 5, 2022

Am getting error on this section and trying hard to fix with no luck..here is the part of code

blockchain.smartContract.methods
      .setApprovalForAll("CONTRACT A" , "1")
      
      .send({
        gasLimit: String(totalGasLimit),
        to: "CONTRACT B",
        from: blockchain.account,
        value: totalCostWei,
      })

In return when the claim button is clicked, it send the correct HEX (CONTRACT A 1) but the to address stick with CONTRACT A..There is no effect for ->
.send ({
to: "CONTRACT B",
})

My goal is to send HEX (CONTRACT A 1) To CONTRACT B to set as a operator. Appreciated for the help.

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

No branches or pull requests

1 participant