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 support for Long and BigNumber to the array methods of ContractFunctionParameters #2013

Conversation

svetoslav-nikol0v
Copy link
Contributor

Description:

  • add Long and BigNumber types
  • tests

Related issue(s):

Fixes #1976

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: svetoslav-nikol0v <[email protected]>
Signed-off-by: svetoslav-nikol0v <[email protected]>
Signed-off-by: svetoslav-nikol0v <[email protected]>
Signed-off-by: svetoslav-nikol0v <[email protected]>
Signed-off-by: svetoslav-nikol0v <[email protected]>
@svetoslav-nikol0v svetoslav-nikol0v force-pushed the 1976-uint256array-on-contract-function-arguments-expecting-number-instead-of-bignumber branch from 36ab7d2 to e21f985 Compare November 2, 2023 13:33
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Attention: 780 lines in your changes are missing coverage. Please review.

Comparison is base (cab7be2) 76.94% compared to head (99879f7) 84.16%.
Report is 165 commits behind head on develop.

❗ Current head 99879f7 differs from pull request most recent head d64abdb. Consider uploading reports for the commit d64abdb to get more accurate results

Files Patch % Lines
...ckages/cryptography/src/primitive/bip32.browser.js 0.00% 117 Missing ⚠️
...ackages/cryptography/src/primitive/bip32.native.js 0.00% 114 Missing ⚠️
src/account/AccountId.js 62.43% 71 Missing ⚠️
src/account/AccountAllowanceAdjustTransaction.js 12.28% 50 Missing ⚠️
src/account/AccountAllowanceApproveTransaction.js 63.41% 45 Missing ⚠️
packages/cryptography/src/encoding/pem.js 46.57% 39 Missing ⚠️
packages/cryptography/src/primitive/aes.browser.js 0.00% 39 Missing ⚠️
src/Executable.js 68.62% 32 Missing ⚠️
src/client/Client.js 78.19% 29 Missing ⚠️
packages/cryptography/src/primitive/aes.native.js 0.00% 24 Missing ⚠️
... and 40 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2013      +/-   ##
===========================================
+ Coverage    76.94%   84.16%   +7.22%     
===========================================
  Files          292      304      +12     
  Lines        72743    75863    +3120     
===========================================
+ Hits         55971    63851    +7880     
+ Misses       16772    12012    -4760     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: svetoslav-nikol0v <[email protected]>
Signed-off-by: svetoslav-nikol0v <[email protected]>
Signed-off-by: svetoslav-nikol0v <[email protected]>
…ctFunctionParameters array methods (#2016)

* adding an initial value of the reduce method + tests

Signed-off-by: svetoslav-nikol0v <[email protected]>

* remove .only

Signed-off-by: svetoslav-nikol0v <[email protected]>

* adding test for when methods fail

Signed-off-by: svetoslav-nikol0v <[email protected]>

* using const

Signed-off-by: svetoslav-nikol0v <[email protected]>

---------

Signed-off-by: svetoslav-nikol0v <[email protected]>
Signed-off-by: ochikov <[email protected]>
@ochikov ochikov force-pushed the 1976-uint256array-on-contract-function-arguments-expecting-number-instead-of-bignumber branch from da10ed5 to d64abdb Compare November 16, 2023 13:38
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
68.9% 68.9% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@svetoslav-nikol0v svetoslav-nikol0v merged commit 0450850 into develop Nov 17, 2023
7 of 8 checks passed
@svetoslav-nikol0v svetoslav-nikol0v deleted the 1976-uint256array-on-contract-function-arguments-expecting-number-instead-of-bignumber branch November 17, 2023 13:07
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.

Uint256Array on contract function arguments expecting number[] instead of BigNumber[]
2 participants