The function new_eth_connector() is a private call that must be called by the current account.
The requirement assert_private_call()on line [519] ensures that the predecessor account ID matches the current
account ID. This requirement can only be filled by two conditions.
If the contract makes a callback to itself.
If an access key belonging to this account is used to sign the transaction.
It is advised to remove the access key and instead enforce the predecessor account to be EngineState.owner_id for each of the functions listed above.
This can be done using the function require_owner_only().
The function
new_eth_connector()
is a private call that must be called by the current account.The requirement
assert_private_call()
on line [519] ensures that the predecessor account ID matches the current account ID. This requirement can only be filled by two conditions.It is advised to remove the access key and instead enforce the predecessor account to be
EngineState.owner_id
for each of the functions listed above.This can be done using the function
require_owner_only()
.