From 87050b74b6d6f9009dc7a89ac74fd0ad6a518996 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Fri, 21 Nov 2014 15:07:15 -0300 Subject: [PATCH] Change type (reserved keyword) for scriptType --- docs/Address.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Address.md b/docs/Address.md index c5f1409..a5642b1 100644 --- a/docs/Address.md +++ b/docs/Address.md @@ -16,7 +16,7 @@ The code to do these validations looks like this: var address = new bitcore.Address('1BitcoinAddress...'); assert(address.network === bitcore.network.livenet); // Detect the kind of the address... -assert(address.type === bitcore.Address.Pay2PubKeyHash); +assert(address.scriptType === bitcore.Address.Pay2PubKeyHash); ``` There are also static methods for this that work very similarly: @@ -25,6 +25,6 @@ There are also static methods for this that work very similarly: var address = new bitcore.Address(); assert(bitcore.Address.isValid('1BitcoinAddress...')); assert(bitcore.Address.network('1BitcoinAddress...') === bitcore.network.livenet); -assert(bitcore.Address.type('1BitcoinAddress...') !== bitcore.Address.Pay2ScriptHash); -assert(bitcore.Address.type('3MultisigP2SH...') === bitcore.Address.Pay2ScriptHash); +assert(bitcore.Address.scriptType('1BitcoinAddress...') !== bitcore.Address.Pay2ScriptHash); +assert(bitcore.Address.scriptType('3MultisigP2SH...') === bitcore.Address.Pay2ScriptHash); ```