updated tests

This commit is contained in:
debris 2015-08-07 11:19:44 +02:00
parent 94b1f91a58
commit aca98050ba
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,8 @@ var Iban = require('../lib/web3/iban.js');
var assert = chai.assert;
var tests = [
{ address: '00c5496aee77c1ba1f0854206a26dda82a81d6d8', expected: 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS'}
{ address: '00c5496aee77c1ba1f0854206a26dda82a81d6d8', expected: 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS'},
{ address: '0x00c5496aee77c1ba1f0854206a26dda82a81d6d8', expected: 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS'}
];
describe('lib/web3/iban', function () {

View File

@ -26,8 +26,8 @@ describe('web3.eth.sendIBANTransaction', function () {
step++;
assert.equal(payload.method, 'eth_call');
assert.deepEqual(payload.params, [{
data: "0x511b1df9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000045852454700000000000000000000000000000000000000000000000000000000",
to: web3.eth.namereg.address
data: "0x3b3b57de5852454700000000000000000000000000000000000000000000000000000000",
to: web3.eth.ibanNamereg.address
}, "latest"]);
return;