forked from cerc-io/plugeth
ded221fba2
Conflicts: libjsqrc/ethereumjs/.travis.yml libjsqrc/ethereumjs/README.md libjsqrc/ethereumjs/dist/ethereum.js libjsqrc/ethereumjs/dist/ethereum.js.map libjsqrc/ethereumjs/lib/abi.js libjsqrc/ethereumjs/package.json
38 lines
868 B
JavaScript
38 lines
868 B
JavaScript
var assert = require('assert');
|
|
var abi = require('../lib/abi.js');
|
|
|
|
describe('abi', function() {
|
|
describe('inputParser', function() {
|
|
it('should parse ...', function() {
|
|
|
|
var desc = [{
|
|
"name": "multiply",
|
|
"inputs": [
|
|
{
|
|
"name": "a",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "d",
|
|
"type": "uint256"
|
|
}
|
|
]
|
|
}];
|
|
|
|
var iParser = abi.inputParser(desc);
|
|
assert.equal(iParser.multiply(1), "0x000000000000000000000000000000000000000000000000000000000000000001");
|
|
|
|
});
|
|
});
|
|
|
|
|
|
describe('outputParser', function() {
|
|
it('parse ...', function() {
|
|
|
|
});
|
|
});
|
|
});
|
|
|