Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Update Coinbase Constructor Args Default #55

Merged

Conversation

John-peterson-coinbase
Copy link
Contributor

What changed? Why?

  • Update Coinbase constructor args so that passing undefined is valid. This will fallback to the full set of defaults.

Qualified Impact

src/coinbase/coinbase.ts Outdated Show resolved Hide resolved
@John-peterson-coinbase John-peterson-coinbase force-pushed the chore-update-coinbase-constructor-args branch from ccdd24b to 06d09bf Compare June 5, 2024 17:14
@John-peterson-coinbase John-peterson-coinbase force-pushed the chore-update-coinbase-constructor-args branch from 06d09bf to dd032af Compare June 5, 2024 17:15
@@ -121,7 +121,7 @@ export class Coinbase {
useServerSigner = false,
debugging = false,
basePath = BASE_PATH,
}: CoinbaseConfigureFromJsonOptions): Coinbase {
}: CoinbaseConfigureFromJsonOptions = {}): Coinbase {
Copy link
Contributor

@erdimaden erdimaden Jun 5, 2024

Choose a reason for hiding this comment

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

since we already changed typing, we don't need to have {}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is for the configure from json options where passing undefined is valid

@John-peterson-coinbase John-peterson-coinbase merged commit bbfee52 into release-v0.0.7 Jun 5, 2024
4 checks passed
@erdimaden erdimaden deleted the chore-update-coinbase-constructor-args branch June 21, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants