Skip to content

Commit

Permalink
Change formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Heather S committed Sep 27, 2021
1 parent 0b3b1f8 commit 3622b7c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
25 changes: 13 additions & 12 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DeploymentExecutor {
daiTokenWrapper;
dai_token;
gate;
erc1155NonTransferable
erc1155NonTransferable;

constructor() {
if (this.constructor == DeploymentExecutor) {
Expand Down Expand Up @@ -126,9 +126,9 @@ class DeploymentExecutor {
event.args._newWrapperAddress
);

tx = await this.gate.setNonTransferableTokenContract(this.erc1155NonTransferable.address);


tx = await this.gate.setNonTransferableTokenContract(
this.erc1155NonTransferable.address
);
}

async deployContracts() {
Expand All @@ -139,7 +139,9 @@ class DeploymentExecutor {
const TokenRegistry = await ethers.getContractFactory('TokenRegistry');
const DAITokenWrapper = await ethers.getContractFactory('DAITokenWrapper');
const Gate = await ethers.getContractFactory('Gate');
const ERC1155NonTransferable = await ethers.getContractFactory('ERC1155NonTransferable');
const ERC1155NonTransferable = await ethers.getContractFactory(
'ERC1155NonTransferable'
);

this.tokenRegistry = await TokenRegistry.deploy();
this.erc1155erc721 = await ERC1155ERC721.deploy();
Expand All @@ -152,7 +154,9 @@ class DeploymentExecutor {
);
this.daiTokenWrapper = await DAITokenWrapper.deploy(this.dai_token);
this.gate = await Gate.deploy(this.br.address);
this.erc1155NonTransferable = await ERC1155NonTransferable.deploy("http://dummyuri");
this.erc1155NonTransferable = await ERC1155NonTransferable.deploy(
'http://dummyuri'
);

await this.tokenRegistry.deployed();
await this.erc1155erc721.deployed();
Expand All @@ -161,7 +165,7 @@ class DeploymentExecutor {
await this.br.deployed();
await this.daiTokenWrapper.deployed();
await this.gate.deployed();
await this. erc1155NonTransferable.deployed();
await this.erc1155NonTransferable.deployed();
}

logContracts() {
Expand All @@ -181,10 +185,7 @@ class DeploymentExecutor {
'DAI Token Wrapper Contract Address: ',
this.daiTokenWrapper.address
);
console.log(
'Gate Contract Address: ',
this.gate.address
);
console.log('Gate Contract Address: ', this.gate.address);
console.log(
'ERC1155NonTransferable Contract Address: ',
this.erc1155NonTransferable.address
Expand All @@ -204,7 +205,7 @@ class DeploymentExecutor {
br: this.br.address,
daiTokenWrapper: this.daiTokenWrapper.address,
gate: this.gate.address,
erc1155NonTransferable: this.erc1155NonTransferable.address
erc1155NonTransferable: this.erc1155NonTransferable.address,
},
null,
2
Expand Down
24 changes: 10 additions & 14 deletions scripts/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,21 @@ export async function verifyContracts(env: string): Promise<void> {
try {
await hre.run('verify:verify', {
address: contracts.gate,
constructorArguments: [
contracts.br
],
constructorArguments: [contracts.br],
});
} catch (error) {
logError('Gate', error.message);
}

//verify ERC1155NonTransferable
try {
await hre.run('verify:verify', {
address: contracts.erc1155NonTransferable,
constructorArguments: [
"http://dummyuri"
],
});
} catch (error) {
logError('ERC1155NonTransferable', error.message);
}
//verify ERC1155NonTransferable
try {
await hre.run('verify:verify', {
address: contracts.erc1155NonTransferable,
constructorArguments: ['http://dummyuri'],
});
} catch (error) {
logError('ERC1155NonTransferable', error.message);
}
}

function logError(contractName, msg) {
Expand Down

0 comments on commit 3622b7c

Please sign in to comment.