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
Currently everyone can use the delegator url created on vechain energy. We need to write a smart contract to check if the transaction is for the smart account. Something like this:
interface IPrototype {
function master(address _self) returns (address);
}
// …
function canSponsorTransactionFor(
address _origin,
address _to,
bytes calldata _data
) public view returns (bool) {
if (IPrototype(0x000000000000000000000050726f746F74797065).master(_to) == 0xDeployerAddress) {
return true;
}
return false;
}
The text was updated successfully, but these errors were encountered:
Currently everyone can use the delegator url created on vechain energy. We need to write a smart contract to check if the transaction is for the smart account. Something like this:
The text was updated successfully, but these errors were encountered: