You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
616 B
14 lines
616 B
const CHAIN_IDS = require("../constants/chainIds.json")
|
|
|
|
module.exports = async function (taskArgs, hre) {
|
|
const signers = await ethers.getSigners()
|
|
const owner = signers[0]
|
|
const onft1155 = await ethers.getContract("ONFT1155")
|
|
const dstChainId = CHAIN_IDS[taskArgs.targetNetwork]
|
|
let tx = await (
|
|
await onft1155.send(dstChainId, owner.address, taskArgs.tokenId, taskArgs.quantity, owner.address, ethers.constants.AddressZero, "0x", {
|
|
value: ethers.utils.parseEther(taskArgs.msgValue),
|
|
})
|
|
).wait()
|
|
console.log(`send tx: ${tx.transactionHash}`)
|
|
}
|
|
|