Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aemil145 committed Apr 29, 2022
1 parent 2d41c86 commit 335017c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,11 @@ async function main () {
// functions such as 'getSigners' and 'getContractFactory' are available in global context
const [alice, bob] = await getSigners()
// get contract object of 'alpha' contract in 'contracts/alpha' with bob as contract default signer
const contract = await getContractFactory('alpha', bob)
// get contract object of 'alpha' contract in 'contracts/alpha'
const contract = await getContractFactory('alpha')
// define instantiate message for the contract
// in this message you can set called function and its parameters
const MSG_INIT = { count: 13 }
// deploying the contract with alice as a signer
Expand All @@ -243,7 +244,7 @@ async function main() {
const [alice, bob] = await getSigners()
// replace the address with the new one from your deployed smart contract
const contract = await getContractFromAddress('cudos1uul3yzm2lgskp3dxpj0zg558hppxk6pt8t00qe')
const contract = await getContractFromAddress('cudos1uul3yzm2lgskp3dxpj0zg558hppxk6pt8t00qe', bob)
// ...
```
Expand Down

0 comments on commit 335017c

Please sign in to comment.