Skip to content

FIX: Contract class difference error#12940

Closed
megabyte0x wants to merge 1 commit intoAztecProtocol:masterfrom
megabyte0x:patch-4
Closed

FIX: Contract class difference error#12940
megabyte0x wants to merge 1 commit intoAztecProtocol:masterfrom
megabyte0x:patch-4

Conversation

@megabyte0x
Copy link
Copy Markdown

Description

As per the current tutorial, the deployment of the token contract is being done with the Contract class while the instance of it for getToken function is created using the TokenContract class, and upon executing the script to fetch balance it's throwing the following error:

Error while retrying JsonRpcClient request pxe_updateContract to http://localhost:8080: Error: Error 500 from server http://localhost:8080 on pxe_updateContract: Could not update contract to a class different from the current one.
    at <anonymous> (/Users/sample_dapp/node_modules/@aztec/foundation/dest/json-rpc/client/fetch.js:59:23)
    at processTicksAndRejections (:12:39) {
  originalLine: 43,
  originalColumn: 22
}

Fix

Keep the Contract class constant for both the deployment and instance creation for the tutorial.

@critesjosh
Copy link
Copy Markdown
Contributor

closing as duplicate #12802

@critesjosh critesjosh closed this Mar 21, 2025
@megabyte0x megabyte0x deleted the patch-4 branch March 22, 2025 07:23
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.

2 participants