From fabb6dfe6e734eadd91448122f2ce8c1612c39a6 Mon Sep 17 00:00:00 2001 From: Guido Vranken Date: Mon, 26 Apr 2021 22:08:35 +0200 Subject: [PATCH] script: Replace address-of idiom with vector data() method --- src/script/sigcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/sigcache.cpp b/src/script/sigcache.cpp index c6d898a25a..c5ff3d8d13 100644 --- a/src/script/sigcache.cpp +++ b/src/script/sigcache.cpp @@ -53,7 +53,7 @@ public: ComputeEntryECDSA(uint256& entry, const uint256 &hash, const std::vector& vchSig, const CPubKey& pubkey) const { CSHA256 hasher = m_salted_hasher_ecdsa; - hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(&vchSig[0], vchSig.size()).Finalize(entry.begin()); + hasher.Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(vchSig.data(), vchSig.size()).Finalize(entry.begin()); } void