Skip to content

[SDK] import * as GREETER_CONTRACT_ABI from "./abi.json"; // TODO: Complete and import the ABI #374

Closed Answered by uF4No
KK-yao asked this question in SDKs
Discussion options

You must be logged in to vote

The abi.json file from the frontend quickstart tutorial is not the full artifact generated by the compiler, but only the abi part of it. That's why it worked when you created the erc_abi variable. You can either do that or, if you copy/past the full artifact, reference it using GREETER_CONTRACT_ABI.abi later on.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by uF4No

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
SDKs
Labels
sdk Questions for the SDKs
6 participants