forked from mirror/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
868 B
37 lines
868 B
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() {
|
|
|
|
});
|
|
});
|
|
});
|
|
|
|
|