Skip to content

Commit

Permalink
Expose util.js and constant.js under keys instead of root access object
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Katz committed May 25, 2019
1 parent acdf2b5 commit f4b2ff7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ await cli.add(entry, "Es32PjobTxPTd73dohEFRegMFRLv3X5WZ4FXEwNN8kE2pMDfeMym"); //
Get token chain ID from token ID and issuer root chain ID

```javascript
const util = require('fat-js').util

const chainId = util.getTokenChainId('mytoken', '888888b2e7c7c63655fa85e0b0c43b4b036a6bede51d38964426f122f61c5584').toString('hex')

/*
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = Object.assign({},
require('./cli/CLI'),
require('./util'),
require('./constant'),
{
util: require('./util'),
constant: require('./constant'),
FAT0: {
TransactionBuilder: require('./0/TransactionBuilder'),
Transaction: require('./0/Transaction'),
Expand Down

0 comments on commit f4b2ff7

Please sign in to comment.