You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In gsn.org, there is msgSender() that allows contract B also to get the address of the user who initiated and signed the transaction. We can get it in SmartContract by using this.sender.getAndRequireSignatureV2()
Proposal:
add to each AccountUpdate that is being created for SmartContract method call the field caller (this.self.caller) that will contain the address and tokenId of the caller of a method - feePayer in case the method is called inside Mina.transaction and calling contract address in case it is called by another SmartContract
add the possibility to get inside the SmartContract the verification key hash of the account {publicKey, tokenId} to enable the SmartContract to do different actions depending on who called the method (account.verificationKey.get()).
The text was updated successfully, but these errors were encountered:
https://discord.com/channels/484437221055922177/1282303057526263879
this.sender.getAndRequireSignatureV2()
Proposal:
caller
(this.self.caller
) that will contain the address and tokenId of the caller of a method - feePayer in case the method is called insideMina.transaction
and calling contract address in case it is called by another SmartContractaccount.verificationKey.get()
).The text was updated successfully, but these errors were encountered: