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

Add feature to allow override on timestamp and signature #295

Merged
merged 6 commits into from
Oct 10, 2019

Conversation

leptians
Copy link
Contributor

To allow override on timestamp and signature on API call level

Copy link
Contributor

@strausr strausr left a comment

Choose a reason for hiding this comment

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

@leptians Can you please add a test that verifies that when the user adds a signature then it is used regardless of other parameters

@lukitsbrian lukitsbrian force-pushed the feature/allow-override-on-timestamp-and-signature branch from b94ae83 to 39cb8ba Compare September 28, 2019 23:58
@lukitsbrian lukitsbrian requested a review from strausr September 29, 2019 00:11
@asisayag2
Copy link
Contributor

@strausr , let's review and make sure it goes into the next version

lib-es5/utils/index.js Outdated Show resolved Hide resolved
lib-es5/utils/index.js Outdated Show resolved Hide resolved
lib-es5/utils/index.js Outdated Show resolved Hide resolved
test/utils_spec.js Outdated Show resolved Hide resolved
@@ -1063,6 +1063,8 @@ function process_request_params(params, options) {
if (options.unsigned != null && options.unsigned) {
params = exports.clear_blank(params);
delete params.timestamp;
} else if (options.signature ) {
params = exports.clear_blank(options);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please explain what clear_blank is being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following the same practice the same as from line#1064

@lukitsbrian lukitsbrian force-pushed the feature/allow-override-on-timestamp-and-signature branch from 105cc07 to a5334a6 Compare October 9, 2019 21:16
@lukitsbrian lukitsbrian requested a review from strausr October 9, 2019 22:59
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.

3 participants