mirror of
https://github.com/eosswedenorg/thalos-docs
synced 2026-07-04 12:03:42 +02:00
docs/api/examples.md: fix ts/js code.
This commit is contained in:
parent
8c815e7b75
commit
51848815da
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ install the thalos client library:
|
||||||
::: code-group
|
::: code-group
|
||||||
|
|
||||||
```ts [TypeScript]
|
```ts [TypeScript]
|
||||||
import * as thalos from 'thalos-nodejs';
|
import * as thalos from '@eosswedenorg/thalos-client';
|
||||||
|
|
||||||
// Create client.
|
// Create client.
|
||||||
const client = thalos.createRedisClient({
|
const client = thalos.createRedisClient({
|
||||||
|
|
@ -104,7 +104,7 @@ client.onAction({contract: "atomicassets", name: "logtransfer"}, (action:thalos.
|
||||||
|
|
||||||
```js [JavaScript]
|
```js [JavaScript]
|
||||||
|
|
||||||
const thalos = require('thalos-nodejs');
|
const thalos = require('@eosswedenorg/thalos-client');
|
||||||
|
|
||||||
// Create client.
|
// Create client.
|
||||||
const client = thalos.createRedisClient({
|
const client = thalos.createRedisClient({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue