diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-30 20:03:35 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-04 06:55:31 +0200 |
commit | fac30eec42c486ec1bfd696293040a7aa0f04625 (patch) | |
tree | 562aadddf3da65e1366d45b2860d8e11c476d866 /build_msvc | |
parent | faece47c4706783e0460ed977390a44630b2d44c (diff) |
refactor: Replace &foo[0] with foo.data()
Diffstat (limited to 'build_msvc')
-rw-r--r-- | build_msvc/testconsensus/testconsensus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_msvc/testconsensus/testconsensus.cpp b/build_msvc/testconsensus/testconsensus.cpp index 115c92792d..f3c8517130 100644 --- a/build_msvc/testconsensus/testconsensus.cpp +++ b/build_msvc/testconsensus/testconsensus.cpp @@ -45,7 +45,7 @@ int main() stream << vanillaSpendTx; bitcoinconsensus_error err; - auto op0Result = bitcoinconsensus_verify_script_with_amount(pubKeyScript.data(), pubKeyScript.size(), amount, (const unsigned char*)&stream[0], stream.size(), 0, bitcoinconsensus_SCRIPT_FLAGS_VERIFY_ALL, &err); + auto op0Result = bitcoinconsensus_verify_script_with_amount(pubKeyScript.data(), pubKeyScript.size(), amount, stream.data(), stream.size(), 0, bitcoinconsensus_SCRIPT_FLAGS_VERIFY_ALL, &err); std::cout << "Op0 result: " << op0Result << ", error code " << err << std::endl; getchar(); |