Skip to content

Commit

Permalink
refactor: Default options in walletcreatefundedpsbt to VOBJ instead o…
Browse files Browse the repository at this point in the history
…f VNULL

This should not change behavior and makes the code consistent with other
places.
  • Loading branch information
MacroFake committed Jul 13, 2022
1 parent 31c6309 commit ccccc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/rpc/spend.cpp
Expand Up @@ -1633,7 +1633,7 @@ RPCHelpMan walletcreatefundedpsbt()
}, true
);

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

CAmount fee;
int change_position;
Expand Down

0 comments on commit ccccc17

Please sign in to comment.