Skip to content

Commit

Permalink
chore: added test and build a dist package
Browse files Browse the repository at this point in the history
  • Loading branch information
tonk-team committed May 8, 2023
1 parent 3fb523d commit 965a44e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/tonweb.js

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions src/test-http-provider.js
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();

0 comments on commit 965a44e

Please sign in to comment.