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

near-sdk-bindgen String issue #770

Open
Varatharaj-K opened this issue Sep 25, 2024 · 0 comments
Open

near-sdk-bindgen String issue #770

Varatharaj-K opened this issue Sep 25, 2024 · 0 comments
Labels
question Further information is requested

Comments

@Varatharaj-K
Copy link

Hi Team, I am adding features to an existing NEAR smart contract written in Typescript. I am able to install the packages successfully. But when I try to build the contract I am getting the below error.

npm run build                        

> [email protected] build
> npm run build:release


> [email protected] build:release
> npx asc assembly/index.ts --target release --runtime stub

ERROR TS2322: Type '~lib/string/String | null' is not assignable to type '~lib/string/String'.

       encoder.setString(name, value);
                               ~~~~~
 in ~lib/near-sdk-bindgen/index.ts(125,31)

FAILURE 1 compile error(s)

Here is the details of the project

Repo Link
Node Version: v20.17.0
NPM version: 10.8.2
Dependencies used:

    "assemblyscript": "^0.19.23",
    "near-sdk-as": "^3.0.0",
    "near-sdk-bindgen": "^3.0.0",
    "visitor-as": "^0.5.0",
    "near-sdk-core": "^3.0.0"
@Varatharaj-K Varatharaj-K added the question Further information is requested label Sep 25, 2024
@Varatharaj-K Varatharaj-K changed the title near-sdk-bindgen String conversion issue near-sdk-bindgen String issue Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant