Commit c2de5cdb authored by Zhenzhen Zhan's avatar Zhenzhen Zhan
Browse files

Address conversion

parent 303dc14a
......@@ -15,7 +15,7 @@ describe('Base58Check', function() {
});
it('can validate a serialized string', function() {
var address = '3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy';
var address = 'CRMcyqcdjVBHHAdsMhUyEoEougpwT2uCa2rX';
Base58Check.validChecksum(address).should.equal(true);
address = address + 'a';
Base58Check.validChecksum(address).should.equal(false);
......@@ -32,7 +32,7 @@ describe('Base58Check', function() {
});
describe('#set', function() {
it('should set a buf', function() {
should.exist(Base58Check().set({buf: buf}).buf);
});
......@@ -83,7 +83,7 @@ describe('Base58Check', function() {
});
describe('#fromBuffer', function() {
it('should not fail', function() {
should.exist(Base58Check().fromBuffer(buf));
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment