Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed May 15, 2023
1 parent 1ac77f5 commit de7a18b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ After successful contract compilation, TypeChain typings will be automatically g

...

import {ContractName} from '../../../typechain/osx-versions/{version-name}/{path to ContractName}';
import {ContractName__factory} from '../../../typechain/osx-versions/{version-name}/{path to ContractName__factory}';
import {MyContract} from '../../../typechain/osx-versions/{version-name}/{path to MyContract}';
import {myContract__factory} from '../../../typechain/osx-versions/{version-name}/{path to myContract__factory}';

describe('ContractName Test', function () {
let contractName: ContractName;
describe('MyContract Test', function () {
let myContract: MyContract;

beforeEach(async function () {
const signers = await ethers.getSigners();
const ContractNameFactory = new ContractName__factory(signers[0]);
contractName = await ContractNameFactory.deploy();
const myContractFactory = new myContract__factory(signers[0]);
myContract = await myContractFactory.deploy();
});

it('Should do something', async function () {
const result = await contractName.someFunction();
const result = await myContract.someFunction();
expect(result).to.equal(something);
});
});
Expand All @@ -113,7 +113,7 @@ describe('ContractName Test', function () {

```

Please replace 'ContractName' with the actual name of your contract, and follow the same for the other placeholders (someFunction, something). This is an illustrative example, the actual test case will depend on the specific methods and functionality of your contract.
Please replace 'MyContract' with the actual name of your contract, and follow the same for the other placeholders (someFunction, something). This is an illustrative example, the actual test case will depend on the specific methods and functionality of your contract.

```ts
// Example of usage in a test
Expand Down

0 comments on commit de7a18b

Please sign in to comment.