Closed 0x3639 closed 6 months ago
Data of an address that never had a sentinel registered:
{
"data": null
}
Data of an address with a registered sentinel:
{
"data": {
"owner": "{zts_address}",
"registrationTimestamp": 1691513800,
"isRevocable": true,
"revokeCooldown": 22750,
"active": true
}
}
Data of an address with a revoked sentinel:
{
"data": {
"owner": "{zts_address}",
"registrationTimestamp": 1691513800,
"isRevocable": true,
"revokeCooldown": 22750,
"active": false
}
}
Syrius only checks whether the rpc method embedded.sentinel.getByOwner
returns data.
if (snapshot.hasData) {
return _getAlreadyCreatedSentinelBody(context);
} else {
return _getCreateSentinelBody(context);
}
Describe the bug When you activate a sentinel in syrius and then revoke it, syrius still shows the sentinel as still active.
To Reproduce Steps to reproduce the behavior:
RPC returns
false
withembedded.sentinel.getByOwner
Expected behavior User should be able to create a sentinel on the address
Workaround Move funds to a different address and enable Sentinel.
Screenshots
Desktop (please complete the following information):
Additional context Potential source of issue