Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

"Critical" dependency in broken@ethersproject/bytes #5737

Closed
1 task
earizon opened this issue Nov 26, 2022 · 1 comment
Closed
1 task

"Critical" dependency in broken@ethersproject/bytes #5737

earizon opened this issue Nov 26, 2022 · 1 comment

Comments

@earizon
Copy link

earizon commented Nov 26, 2022


Issue

What the issue is, in broad strokes.

Steps to Reproduce

methodA(address inputVal ) is a mock Solidity pure function returning incomming inputVal.

Next truffle test work as expected:

  result = await contract.methodA.call('0x35987A0F9AE77012a514835D6DC88b708bC646D6'); 
  // ^ result: 0x35987A0F9AE77012a514835D6DC88b708bC646D6

Next execution fails due to a dependency is broken ethersproject/bytes:5.6.1:

  result = await contract.methodA.call('0x4F1C4e17bAa273EdCcB5c49E07ee87D264cFEdfE'); 

The raised exception is:

result: value out of range (argument="value", value=20, code=INVALID_ARGUMENT, version=bytes/5.6.1)

Expected Behavior

Returned result for contract.methodA.call('0x4F1C4e17bAa273EdCcB5c49E07ee87D264cFEdfE'); returns 0x4F1C4e17bAa273EdCcB5c49E07ee87D264cFEdfE.

Actual Results

An exception is raised value out of range

Environment

  • Operating System:
  • Ethereum client:
  • Truffle version (truffle version): tested with 5.5.29, 5.6.1, 5.6.7
  • node version (node --version): 16.17.1
  • npm version (npm --version): 9.1.2

The original bug looks to be related to: ethers-io/ethers.js#3017

package.json dependencies used for test execution:

 "devDependencies": {
    "@truffle/hdwallet-provider": "^2.1.2",
    "truffle": "^5.6.7"
 }    
@earizon earizon changed the title "Critical?" dependency in broken@ethersproject/bytes "Critical" dependency in broken@ethersproject/bytes Nov 26, 2022
@earizon earizon closed this as completed Nov 26, 2022
@earizon
Copy link
Author

earizon commented Nov 26, 2022

(Closing now. I need to investigate further, I'm not able to reproduce the bug in a new fresh environment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant