Skip to content

Commit

Permalink
ylff
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszradomski committed Oct 11, 2023
1 parent ff43a17 commit 2fdacd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions packages/contracts/scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ async function main(): Promise<void> {
await startPerpetualHardhatNode()
}

const inputsFactory = await ethers.getContractFactory(
'Inputs',
)
const inputsFactory = await ethers.getContractFactory('Inputs')
const inputs = await inputsFactory.deploy()
await inputs.deployed()

Expand Down
8 changes: 2 additions & 6 deletions packages/contracts/test/Inputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ describe('Inputs', () => {
it('Should emit BatchAppended event', async () => {
const deployer = await getDeployer()

const inputsFactory = await hre.ethers.getContractFactory(
'Inputs',
)
const inputsFactory = await hre.ethers.getContractFactory('Inputs')
const inputs = await inputsFactory.deploy()

await expect(inputs.appendBatch(randomBytes))
Expand All @@ -25,9 +23,7 @@ describe('Inputs', () => {
})

it('Should revert if called from another contract', async () => {
const inputsFactory = await hre.ethers.getContractFactory(
'Inputs',
)
const inputsFactory = await hre.ethers.getContractFactory('Inputs')
const inputs = await inputsFactory.deploy()
const callerFactory = await hre.ethers.getContractFactory('Caller')
const caller = await callerFactory.deploy(inputs.address)
Expand Down

0 comments on commit 2fdacd0

Please sign in to comment.