Skip to content

Spec.nativeToScVal does not handle scSpecTypeVal for raw JS types #1480

@chadoh

Description

@chadoh

Describe the bug
Spec.nativeToScVal has no handling for raw JS values (string, number, boolean) when the target Soroban type is scSpecTypeVal (value 0).

What version are you on?
Check yarn.lock or package-lock.json to find out precisely what version of the SDK you're running.

v15

See patch to fix this at https://github.com/Consulting-Manao/tansu/pull/174/changes#diff-cb99254b7560e36159f05b4c9f70b9ea3c324e14c267e09eedb6f3b5c52dd5ad

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog (Not Ready)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions