-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added test and build a dist package
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const TonWeb = require('./index'); | ||
const { DnsCollection } = require('./contract/dns/DnsCollection'); | ||
const { DnsItem } = require('./contract/dns/DnsItem'); | ||
const { createOffchainUriCell } = require('./contract/token/nft/NftUtils'); | ||
const { BN, sha256, bytesToHex } = require('./utils'); | ||
const { Cell } = require('./boc'); | ||
const { Contract } = require('./contract'); | ||
|
||
async function init() { | ||
const tonweb = new TonWeb(); | ||
const TOKEN_ADDRESS = | ||
'0:9c2c05b9dfb2a7460fda48fae7409a32623399933a98a7a15599152f37572b49'; | ||
const result = await tonweb.provider.getTokenData(TOKEN_ADDRESS); | ||
console.log(result); | ||
} | ||
|
||
init(); |