Open qwadratic opened 1 year ago
@jackryanservia can you evaluate please?
Both are wrong IMO, they should use neither sign()
nor requireSignature()
when calling a contract method
If I am not wrong requireSignature
will be used mostly during Verification process right ?
https://docs.minaprotocol.com/zkapps/o1js-reference/classes/SmartContract#requiresignature
Also, we can remove it right from tutorial without causing any issue ?
Tutorial 7 smart contract uses
this.requireSignature
in theinit()
method. Deploy transaction is signed, and the explanation states that we signed it becauseinit()
invokes this function.However,
HelloWorld
example doesn’t userequireSignature
, though keepingsign()
in deployment script. Either content or code should be updated.