Skip to content

Comments

[WIP] sendtoaddress named arguments work with asset args#204

Closed
instagibbs wants to merge 1 commit intoElementsProject:elements-0.14.1from
instagibbs:namedarg
Closed

[WIP] sendtoaddress named arguments work with asset args#204
instagibbs wants to merge 1 commit intoElementsProject:elements-0.14.1from
instagibbs:namedarg

Conversation

@instagibbs
Copy link
Contributor

Upstream there are a number of calls that don't correctly check for null arguments, which means named args doesn't work for some calls quite yet. Leaving this as WIP to fix more of them such as sendmany, and upstream those fixes.

@instagibbs
Copy link
Contributor Author

bitcoin/bitcoin#10783 upstream PR, will likely build off of this.

@jtimon jtimon added the 0.14.1 label Jul 13, 2017
Copy link
Contributor

@jtimon jtimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK
2 tiny nits, both of which can be ignored and left for later, thus even though I request changes to the PR, I tell github I approve.

Second nit:
Can you add the \" around subtractfeefromamount while at it?
See https://github.com/ElementsProject/elements/pull/204/files#diff-df7d84ff2f53fcb2a0dc15a3a51e55ceR511

{ "wallet", "lockunspent", &lockunspent, true, {"unlock","transactions"} },
{ "wallet", "sendmany", &sendmany, false, {"fromaccount","amounts","minconf","comment","subtractfeefrom"} },
{ "wallet", "sendtoaddress", &sendtoaddress, false, {"address","amount","comment","comment_to","subtractfeefromamount"} },
{ "wallet", "sendtoaddress", &sendtoaddress, false, {"address","amount","comment","comment_to","subtractfeefromamount", "assetlabel", "ignoreblindfail"} },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't care about having spaces after all commas in the list or not, but please, let's be consistent.

@instagibbs
Copy link
Contributor Author

closing in favor of a backport of bitcoin/bitcoin#10783

@instagibbs instagibbs closed this Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants