aboutsummaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script.cpp')
-rw-r--r--src/script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.cpp b/src/script.cpp
index f917600848..652240f686 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -1135,9 +1135,9 @@ bool ExtractAddress(const CScript& scriptPubKey, const CKeyStore* keystore, CBit
{
uint160 hash160;
if (item.first == OP_PUBKEY)
- addressRet.SetAddress(item.second);
+ addressRet.SetPubKey(item.second);
else if (item.first == OP_PUBKEYHASH)
- addressRet.SetAddress(uint160(item.second));
+ addressRet.SetHash160((uint160)item.second);
if (keystore == NULL || keystore->HaveKey(addressRet))
return true;
}