Use the correct variable for missing witness error

This commit is contained in:
Duke Leto
2022-09-16 23:17:08 -04:00
parent 0938bd6b7b
commit e1590836fd

View File

@@ -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()));