Skip to content

Commit b13e2b9

Browse files
committed
Fix typos on async examples
1 parent c1ece5b commit b13e2b9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
dist
1313
node_modules
14-
test/demo.js
14+
test/demo
1515

1616
# editors
1717
.idea

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Deploy and mint fungible tokens using the `tokenkit.ft` namespace. Pre-upload im
5050

5151
```js
5252
// Returns deployed Run Code
53-
const MyCoin = tokenkit.ft.deploy({
53+
const MyCoin = await tokenkit.ft.deploy({
5454
metadata: {
5555
name: 'My Coin',
5656
description: 'My example token',
@@ -138,7 +138,7 @@ box.sync() // syncs the jig box
138138
For simple changes, for example to upgrade metadata, the `TokenInterface` provides an easy upgrade function.
139139

140140
```js
141-
const upgradedCode = tokenkit.nft.upgrade(origin, {
141+
const upgradedCode = await tokenkit.nft.upgrade(origin, {
142142
metadata: {
143143
image: 'b://30dc4529b612dc76e35c9a54474ad56053c5a033d432f4152ce34c6aca2981ac',
144144
...
@@ -151,7 +151,7 @@ A lower level function can be used for upgrading custom classes not built with t
151151
```js
152152
// By default all static properties from the original class are copied to the
153153
// new class. Avoid this by explicitly listing changed static props.
154-
const upgradedCode = tokenkit.util.upgradeClass(origin, NewClass, ['metadata', 'license'])
154+
const upgradedCode = await tokenkit.util.upgradeClass(origin, NewClass, ['metadata', 'license'])
155155
```
156156

157157
## Transferring classes

0 commit comments

Comments
 (0)