Skip to content

Conversation

@intls
Copy link

@intls intls commented Dec 29, 2024

Description

  1. The import path "matchstick-as/assembly/index" is incorrect. The correct module to import is "matchstick-as". Using an incorrect path can lead to compilation errors because the system will not be able to find the specified module. The matchstick-as documentation recommends importing directly from "matchstick-as" without adding additional paths.

  2. In AssemblyScript, to create an instance of BigInt, you need to use static methods such as BigInt.fromI32(), instead of the constructor new BigInt(0), which is not supported. Incorrect creation of BigInt will result in compilation or runtime errors.

@intls intls changed the title fix: Import Path Error and Improper Object Initialization fix: import path error and improper object initialization Dec 29, 2024
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.

1 participant