Skip to content

Commit

Permalink
msvc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed May 27, 2024
1 parent ceba7ea commit 8e226cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ include = [
"/depend/zcash/src/crypto/sha1.h",
"/depend/zcash/src/crypto/sha256.cpp",
"/depend/zcash/src/crypto/sha256.h",
"/depend/zcash/src/hash.cpp",
"/depend/zcash/src/hash.h",
"/depend/zcash/src/key_constants.h",
"/depend/zcash/src/prevector.h",
Expand Down
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ fn main() -> Result<()> {
.file("depend/zcash/src/crypto/ripemd160.cpp")
.file("depend/zcash/src/crypto/sha1.cpp")
.file("depend/zcash/src/crypto/sha256.cpp")
.file("depend/zcash/src/hash.cpp")
.file("depend/zcash/src/pubkey.cpp")
.file("depend/zcash/src/script/interpreter.cpp")
.file("depend/zcash/src/script/script_error.cpp")
Expand Down
2 changes: 1 addition & 1 deletion depend/zcash/src/script/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ bool CallbackTransactionSignatureChecker::CheckSig(
try {
std::array<uint8_t, 32> sighashArray;
auto scriptBase = static_cast<const CScriptBase&>(scriptCode);
this->sighash(sighashArray.begin(), sighashArray.size(), this->tx, &scriptBase[0], scriptBase.size(), nHashType);
this->sighash(sighashArray.data(), sighashArray.size(), this->tx, &scriptBase[0], scriptBase.size(), nHashType);
sighash = uint256::FromRawBytes(sighashArray);
} catch (logic_error ex) {
return false;
Expand Down

0 comments on commit 8e226cc

Please sign in to comment.