Skip to content

Commit

Permalink
add willemneal's suggestion to README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Willem Wyndham <[email protected]>
  • Loading branch information
ryancwalsh and willemneal authored Jul 25, 2022
1 parent 7e8064c commit 9394edd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,23 @@ You probably need to add a `witgen` macro to the missing type
Add 'witgen' as a dependency to add to type definition. e.g.
Error: no type named `amount`
// Or
You probably need to add a `witgen` macro to the missing type
Add 'witgen' as a dependency to add to type definition. e.g.
1 use witgen::witgen;
2
3 /// Type exposed by contract API
4 #[witgen]
5 struct Foo {}
6
Error: no type named `amount`
--> index.ts:9:73
|
9 | transfer-from-escrow: function(destination-account: account-id, amount: amount)
| ^-----
```

To fix this:
Expand Down

0 comments on commit 9394edd

Please sign in to comment.