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

Unable to send nested tuples as named argument value #381

Open
2 tasks
meywood opened this issue Jan 4, 2024 · 0 comments
Open
2 tasks

Unable to send nested tuples as named argument value #381

meywood opened this issue Jan 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@meywood
Copy link

meywood commented Jan 4, 2024

Describe the bug

When sending a CLTuple3 containing CLTuple3 as inner elements the following exception is thrown:

TypeError: e.clType is not a function
    at Function.toBytesWithType (webpack://casper-js-sdk/./src/lib/CLValue/Abstract.ts:95:31)
    at e.toBytes (webpack://casper-js-sdk/./src/lib/RuntimeArgs.ts:24:34)
    at map (webpack://casper-js-sdk/./src/lib/ByteConverters.ts:145:40)
    at toBytesVector (webpack://casper-js-sdk/./src/lib/ByteConverters.ts:145:29)
    at e.toBytes (webpack://casper-js-sdk/./src/lib/RuntimeArgs.ts:101:15)
    at toBytes (webpack://casper-js-sdk/./src/lib/DeployUtil.ts:690:37)
    at e.toBytes (webpack://casper-js-sdk/./src/lib/DeployUtil.ts:757:29)
    at serializeBody (webpack://casper-js-sdk/./src/lib/DeployUtil.ts:1285:54)
    at Object.F [as makeDeploy] (webpack://casper-js-sdk/./src/lib/DeployUtil.ts:1357:26)

Steps to reproduce the behavior:
See Nested Tuple Feature in standard test repo:
https:/stormeye2000/cspr-sdk-standard-tests-typescript/blob/main/src/features/nested_tuples.feature
https:/stormeye2000/cspr-sdk-standard-tests-typescript/blob/main/src/step-definitions/nested-tuples.steps.ts

Expected behavior
Above test feature passes

Screenshots
N.A.

Additional context
Exercised against V2.15.3

Defect Type

  • [ x] Regression
  • New
  • Escape
@meywood meywood added the bug Something isn't working label Jan 4, 2024
@meywood meywood changed the title Unable to send nested tuples as named argument valuie Unable to send nested tuples as named argument value Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant