Skip to content

Commit ccccc17

Browse files
author
MacroFake
committed
refactor: Default options in walletcreatefundedpsbt to VOBJ instead of VNULL
This should not change behavior and makes the code consistent with other places.
1 parent 31c6309 commit ccccc17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpc/spend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ RPCHelpMan walletcreatefundedpsbt()
16331633
}, true
16341634
);
16351635

1636-
UniValue options = request.params[3];
1636+
UniValue options{request.params[3].isNull() ? UniValue::VOBJ : request.params[3]};
16371637

16381638
CAmount fee;
16391639
int change_position;

0 commit comments

Comments
 (0)