Skip to content

Issue with parameter vs to: address #135

@skybutter798

Description

@skybutter798

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions