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
).
l-henri commented
Good call! We added this in the documentation.