Skip to content

Employ RpcSendTransactionConfig::default() for better forward compatibility#39

Merged
armaniferrante merged 1 commit into
project-serum:masterfrom
mvines:rpc
Oct 23, 2020
Merged

Employ RpcSendTransactionConfig::default() for better forward compatibility#39
armaniferrante merged 1 commit into
project-serum:masterfrom
mvines:rpc

Conversation

@mvines
Copy link
Copy Markdown
Contributor

@mvines mvines commented Oct 23, 2020

The RpcSendTransactionConfig struct is the Rust representation of sendTransaction's JSON configuration object. New fields may be added to this struct in the future as we add more configuration parameters.

This PR causes the default value for new fields to be accepted without a compile error on upgrade, which follows the same semantics as the JSON object it represents.

cc: 3dc834b

@mvines
Copy link
Copy Markdown
Contributor Author

mvines commented Oct 23, 2020

Red CI due to github rate limiting 💾

@mvines
Copy link
Copy Markdown
Contributor Author

mvines commented Oct 23, 2020

Same commit went green here, https://travis-ci.com/github/mvines/serum-dex/builds/192162295

Copy link
Copy Markdown
Contributor

@armaniferrante armaniferrante left a comment

Choose a reason for hiding this comment

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

@mvines I reran the build. Thanks for the update.

@armaniferrante armaniferrante merged commit 5adf879 into project-serum:master Oct 23, 2020
@mvines mvines deleted the rpc branch October 23, 2020 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants