Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Sep 13, 2022
1 parent fb732c5 commit 5083655
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploy/CORN.ts
Expand Up @@ -31,7 +31,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if (network.name == 'mainnet' || network.name == 'goerli') {
if (network.name == "mainnet" || network.name == "goerli") {
await hre.run("verify:verify", {
address: cornDeploymentResult.address,
constructorArguments: []
Expand Down
2 changes: 1 addition & 1 deletion deploy/SoulLinker.ts
Expand Up @@ -31,7 +31,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if (network.name == 'mainnet' || network.name == 'goerli') {
if (network.name == "mainnet" || network.name == "goerli") {
await hre.run("verify:verify", {
address: soulLinkerDeploymentResult.address,
constructorArguments: [env.OWNER || owner.address]
Expand Down
2 changes: 1 addition & 1 deletion deploy/SoulName.ts
Expand Up @@ -34,7 +34,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if (network.name == 'mainnet' || network.name == 'goerli') {
if (network.name == "mainnet" || network.name == "goerli") {
await hre.run("verify:verify", {
address: soulNameDeploymentResult.address,
constructorArguments: [
Expand Down
2 changes: 1 addition & 1 deletion deploy/SoulboundCreditReport.ts
Expand Up @@ -37,7 +37,7 @@ const func: DeployFunction = async ({
);

// verify contract with etherscan, if its not a local network
if (network.name == 'mainnet' || network.name == 'goerli') {
if (network.name == "mainnet" || network.name == "goerli") {
await hre.run("verify:verify", {
address: soulboundCreditReportDeploymentResult.address,
constructorArguments: [
Expand Down
2 changes: 1 addition & 1 deletion deploy/SoulboundIdentity.ts
Expand Up @@ -34,7 +34,7 @@ const func: DeployFunction = async ({
});

// verify contract with etherscan, if its not a local network
if (network.name == 'mainnet' || network.name == 'goerli') {
if (network.name == "mainnet" || network.name == "goerli") {
await hre.run("verify:verify", {
address: soulboundIdentityDeploymentResult.address,
constructorArguments: [
Expand Down
6 changes: 6 additions & 0 deletions test/SoulFactory.test.ts
Expand Up @@ -4,6 +4,8 @@ import { solidity } from "ethereum-waffle";
import { ethers, deployments } from "hardhat";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import {
CORN,
CORN__factory,
ERC20,
ERC20__factory,
IUniswapRouter,
Expand Down Expand Up @@ -59,6 +61,10 @@ describe("Soul Factory", () => {
owner
);

// we get $CORN tokens for address1
const corn: CORN = CORN__factory.connect(CORN_GOERLI, owner);
await corn.connect(address1).mint();

// we get stable coins for address1
await uniswapRouter.swapExactETHForTokens(
0,
Expand Down

0 comments on commit 5083655

Please sign in to comment.