Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function snapshot () {
return ethereum.send('evm_snapshot', [])
}
async function restore (snapshotId) {
return ethereum.send('evm_revert', [snapshotId])
}