generated from zama-ai/fhevm-hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use customError in ConfidentialERC1155
- Loading branch information
Showing
4 changed files
with
87 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
//import { DeployFunction } from "hardhat-deploy/types"; | ||
//import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
// | ||
//const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
// const { deployer } = await hre.getNamedAccounts(); | ||
// const { deploy } = hre.deployments; | ||
// | ||
// const deployed = await deploy("ConfidentialERC20", { | ||
// from: deployer, | ||
// args: ["Naraggara", "NARA"], | ||
// log: true, | ||
// }); | ||
// | ||
// console.log(`ConfidentialERC20 contract: `, deployed.address); | ||
//}; | ||
//export default func; | ||
//func.id = "deploy_confidentialERC20"; // id required to prevent reexecution | ||
//func.tags = ["ConfidentialERC20"]; | ||
import { DeployFunction } from "hardhat-deploy/types"; | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const { deployer } = await hre.getNamedAccounts(); | ||
const { deploy } = hre.deployments; | ||
|
||
const deployed = await deploy("ConfidentialERC1155", { | ||
const deployed = await deploy("ConfidentialERC20", { | ||
from: deployer, | ||
args: ["Uri"], | ||
args: ["Naraggara", "NARA"], | ||
log: true, | ||
}); | ||
|
||
console.log(`ConfidentialERC1155 contract: `, deployed.address); | ||
console.log(`ConfidentialERC20 contract: `, deployed.address); | ||
}; | ||
export default func; | ||
func.id = "deploy_confidentialERC1155"; // id required to prevent reexecution | ||
func.tags = ["ConfidentialERC1155"]; | ||
func.id = "deploy_confidentialERC20"; // id required to prevent reexecution | ||
func.tags = ["ConfidentialERC20"]; | ||
// import { DeployFunction } from "hardhat-deploy/types"; | ||
// import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
|
||
// const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
// const { deployer } = await hre.getNamedAccounts(); | ||
// const { deploy } = hre.deployments; | ||
|
||
// const deployed = await deploy("ConfidentialERC1155", { | ||
// from: deployer, | ||
// args: ["Uri"], | ||
// log: true, | ||
// }); | ||
|
||
// console.log(`ConfidentialERC1155 contract: `, deployed.address); | ||
// }; | ||
// export default func; | ||
// func.id = "deploy_confidentialERC1155"; // id required to prevent reexecution | ||
// func.tags = ["ConfidentialERC1155"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters