Skip to content

Upgrading snforge #2569

@iossocket

Description

@iossocket

We are working on a lending protocol that integrates pyth on Starknet and would like to use the latest versions of snforge and scarb. During the upgrading process, we found two tests failed

pyth_integrationtest::pyth::test_upgrade_works
pyth_integrationtest::pyth::test_upgrade_rejects_wrong_magic

with error message:

Failure data:
    Got an exception while executing a hint: Hint Error: Error at pc=0:20839:
Got an exception while executing a hint: Class with hash 0x042cc93b4142052d0ec7a21b6746e5fc4055a850e67881ad8590dbf9bcfb4bc7 is not declared.

The class hash in encoded in data::pyth_upgrade_fake1() and data::pyth_upgrade_wrong_magic() are not matched.

According to the README, I try to regenerate the tests/data.cairo, but the result does not include pyth_upgrade_fake1 and pyth_upgrade_wrong_magic. Did I miss something?

the repo is forked here. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions