From 9394eddf859ccf65aeb90bdedddcc621b634eff8 Mon Sep 17 00:00:00 2001 From: ryancwalsh Date: Mon, 25 Jul 2022 12:55:35 -0400 Subject: [PATCH] add willemneal's suggestion to README.md Co-authored-by: Willem Wyndham --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 8bb8c1e..89aff15 100644 --- a/README.md +++ b/README.md @@ -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: