starknet-edu/deploy-cairo1-demo

Copy paste of the contract will not work

glihm opened this issue · 1 comments

glihm commented

Hello,

It could be a valuable info for the reader to remind that the class hash is computed from several inputs described in the documentation.

As a consequence, if the contract's code from this sample is copied and pasted, the Starknet gateway will return a 400 bad request specifying that the class hash already exists (CLASS_ALREADY_DECLARED).

Good call! We added this in the documentation.