From e1590836fd952a83e2e4187e4797b482300355c6 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Fri, 16 Sep 2022 23:17:08 -0400 Subject: [PATCH] Use the correct variable for missing witness error --- src/wallet/asyncrpcoperation_sendmany.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/asyncrpcoperation_sendmany.cpp b/src/wallet/asyncrpcoperation_sendmany.cpp index 5d5067772..28fad9c60 100644 --- a/src/wallet/asyncrpcoperation_sendmany.cpp +++ b/src/wallet/asyncrpcoperation_sendmany.cpp @@ -436,7 +436,7 @@ bool AsyncRPCOperation_sendmany::main_impl() { for (size_t i = 0; i < notes.size(); i++) { if (!witnesses[i]) { throw JSONRPCError(RPC_WALLET_ERROR, - strprintf( "Missing witness for Sapling note at outpoint %s", notes[i].op.ToString()) + strprintf( "Missing witness for Sapling note at outpoint %s", z_sapling_inputs_[i].op.ToString()) ); } assert(builder_.AddSaplingSpend(expsk, notes[i], anchor, witnesses[i].get()));