MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / takeSnapshot

Function takeSnapshot

test/helpers/time.js:40–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40async function takeSnapshot() {
41 return new Promise((resolve, reject) => {
42 web3.currentProvider.send(
43 {
44 jsonrpc: "2.0",
45 method: "evm_snapshot",
46 params: [],
47 id: new Date().getTime()
48 },
49 (err, result) => {
50 if (err) {
51 return reject(err);
52 }
53
54 resolve(result.result);
55 }
56 );
57 });
58}
59
60async function jumpToTime(timestamp) {
61 await new Promise(

Calls

no outgoing calls

Tested by

no test coverage detected