Commit 303dc14a authored by Zhenzhen Zhan's avatar Zhenzhen Zhan
Browse files

Address conversion

parent 0c61387a
......@@ -20,7 +20,7 @@ var Unit = require('./unit');
* @example
* ```javascript
*
* var uri = new URI('crown:18WTcWvwrNnfqeQAn6th9QQ2EpnXMq5Th8?amount=1.2');
* var uri = new URI('crown:CRWKUSw5CPxyUTMqknzgUUcogEYXQC5B4tyU?amount=1.2');
* console.log(uri.address, uri.amount);
* ```
*
......@@ -83,7 +83,7 @@ URI.fromObject = function fromObject(json) {
* @example
* ```javascript
*
* var valid = URI.isValid('crown:18WTcWvwrNnfqeQAn6th9QQ2EpnXMq5Th8');
* var valid = URI.isValid('crown:CRWKUSw5CPxyUTMqknzgUUcogEYXQC5B4tyU');
* // true
* ```
*
......
......@@ -127,7 +127,7 @@ describe('Interpreter', function() {
var privateKey = new PrivateKey('cSBnVM4xvxarwGQuAfQFwqDg9k5tErHUHzgWsEfD4zdwUasvqRVY');
var publicKey = privateKey.publicKey;
var fromAddress = publicKey.toAddress();
var toAddress = 'mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc';
var toAddress = 'tCRWPwado1JJSzcUT4Fdyt46oURu9JM7bBMxj';
var scriptPubkey = Script.buildPublicKeyHashOut(fromAddress);
var utxo = {
address: fromAddress,
......
......@@ -10,7 +10,7 @@ describe('PublicKeyInput', function() {
var utxo = {
txid: '7f3b688cb224ed83e12d9454145c26ac913687086a0a62f2ae0bc10934a4030f',
vout: 0,
address: 'n4McBrSkw42eYGX5YMACGpkGUJKL3jVSbo',
address: 'tCRWbq31QgtHUvyQ8FqLArKhJ7XSHY1QV1Fb5',
scriptPubKey: '2103c9594cb2ebfebcb0cfd29eacd40ba012606a197beef76f0269ed8c101e56ceddac',
amount: 50,
confirmations: 104,
......
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