Skip to content

Commit

Permalink
Ready to release 3.8 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
saeed-zil authored Mar 8, 2024
1 parent 7c885c8 commit aed5587
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 199 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ and finally, here is how you can deploy a contract importing a user-defined libr
contract2 = await hre.deployScillaWithLib("TestContract2",
[{name: "MutualLib", address: mutualLibAddress}]
```
Or:
```typescript
const contract = await this.hre.contractDeployer
.withName("TestContract2")
.withUserDefinedLibraries(
[{name: "MutualLib", address: mutualLibAddress}]
)
.deploy();
```
To change the deployer of the contract, you can send an instance of `Account` class to `hre.setActiveAccount`.
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"devDependencies": {
"@types/chai": "^4.3.12",
"@types/cli-color": "^2.0.6",
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.24",
Expand All @@ -54,7 +53,6 @@
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-unused-imports": "^3.1.0",
"hardhat": "^2.20.1",
"local-package-publisher": "^1.0.5",
"mocha": "^10.3.0",
"prettier": "^2.8.8",
"ts-node": "^10.9.2",
Expand Down
191 changes: 2 additions & 189 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aed5587

Please sign in to comment.