Skip to content

Commit

Permalink
Update CTC parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu authored Mar 19, 2024
1 parent 9f3f3d8 commit 3b79c6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/how-to-write-a-contract/how-to-write-a-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,8 @@ export class MyLib extends SmartContractLib {

}

const N = 10

export class Demo extends SmartContract {

constructor() {
Expand All @@ -722,6 +724,8 @@ export class Demo extends SmartContract {
@method()
public unlock() {
assert(MyLib.sum(10) == 45n, 'incorrect sum')
assert(MyLib.sum(20) == 190n, 'incorrect sum')
assert(MyLib.sum(N) == 45n, 'incorrect sum')
}
}
```
Expand Down

0 comments on commit 3b79c6e

Please sign in to comment.