UNPKG

openchain-sdk-yxl-wx-request

Version:

openchain sd YxL wx request

41 lines (33 loc) 982 B
'use strict'; require('chai').should(); const BigNumber = require('bignumber.js'); const co = require('co'); const OpenChainSDK = require('../index'); const sdk = new OpenChainSDK({ host: 'nodeapitest.yuxinlink.com', // host: '192.168.1.34:36002', }); describe('Test ctp10Token Issue Operation', function() { it('Test ctp10Token Issue Operation ', function() { let data = sdk.operation.ctp10TokenIssueOperation({ initBalance: '10000000', name: 'leo', symbol: 'LEO', decimals: 6, totalSupply: '30', sourceAddress: 'YxLVyL2Rr6u9nFpVdq16ycTJ3HssQBuc9BAVz', // metadata: '', }); data.errorCode.should.equal(0); data = sdk.operation.ctp10TokenIssueOperation({ initBalance: '10000000a', name: 'leo', symbol: 'LEO', decimals: 6, totalSupply: '30', sourceAddress: 'YxLVyL2Rr6u9nFpVdq16ycTJ3HssQBuc9BAVz', metadata: '', }); data.errorCode.should.equal(11004); }); });