Commit 0c61387a authored by Zhenzhen Zhan's avatar Zhenzhen Zhan
Browse files

Address conversion

parent 0d7bfe4a
......@@ -419,7 +419,7 @@ Address.fromObject = function fromObject(obj) {
* @example
* ```javascript
* // a network mismatch error
* var error = Address.getValidationError('15vkcKf7gB23wLAnZLmbVuMiiVDc1Nm4a2', 'testnet');
* var error = Address.getValidationError('CRWGtjvsvZnmhqTXXQmvMNyJdw2BqGci1heu', 'testnet');
* ```
*
* @param {string} data - The encoded data
......@@ -443,7 +443,7 @@ Address.getValidationError = function(data, network, type) {
*
* @example
* ```javascript
* assert(Address.isValid('15vkcKf7gB23wLAnZLmbVuMiiVDc1Nm4a2', 'livenet'));
* assert(Address.isValid('CRWGtjvsvZnmhqTXXQmvMNyJdw2BqGci1heu', 'livenet'));
* ```
*
* @param {string} data - The encoded data
......
......@@ -501,7 +501,7 @@ Transaction.prototype._newTransaction = function() {
*
* ```
* {
* address: 'mszYqVnqKoQx4jcTdJXxwKAissE3Jbrrc1',
* address: 'tCRWRTyf42xgEKGvbMDR8E6MnXyqrSigmmGhF',
* txId: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458',
* outputIndex: 0,
* script: Script.empty(),
......
......@@ -18,7 +18,7 @@ describe('Transaction.Input', function() {
var publicKey = privateKey.publicKey;
var address = new Address(publicKey, Networks.livenet);
var output = {
address: 'CJmUPXS4thHXQQ5Lx3YRtaEBoRwSggDWtH',
address: 'CRMNqJUeo7WGoW2vTdweUH7hu4dufwpD79NN',
prevTxId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140',
outputIndex: 0,
script: new Script(address),
......
......@@ -21,7 +21,7 @@ describe('MultiSigInput', function() {
var public1 = privateKey1.publicKey;
var public2 = privateKey2.publicKey;
var public3 = privateKey3.publicKey;
var address = new Address('CJmUPXS4thHXQQ5Lx3YRtaEBoRwSggDWtH');
var address = new Address('CRMNqJUeo7WGoW2vTdweUH7hu4dufwpD79NN');
var output = {
txId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140',
......
......@@ -20,7 +20,7 @@ describe('PublicKeyHashInput', function() {
var address = new Address(publicKey, Networks.livenet);
var output = {
address: 'CJmUPXS4thHXQQ5Lx3YRtaEBoRwSggDWtH',
address: 'CRMNqJUeo7WGoW2vTdweUH7hu4dufwpD79NN',
txId: '66e64ef8a3b384164b78453fa8c8194de9a473ba14f89485a0e433699daec140',
outputIndex: 0,
script: new Script(address),
......
......@@ -15,7 +15,7 @@ var errors = bitcore.errors;
describe('TransactionSignature', function() {
var fromAddress = 'mszYqVnqKoQx4jcTdJXxwKAissE3Jbrrc1';
var fromAddress = 'tCRWRTyf42xgEKGvbMDR8E6MnXyqrSigmmGhF';
var privateKey = 'cSBnVM4xvxarwGQuAfQFwqDg9k5tErHUHzgWsEfD4zdwUasvqRVY';
var simpleUtxoWith100000Satoshis = {
address: fromAddress,
......
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