MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / loadJsonState

Method loadJsonState

e2e/fixtures/fixture-server.js:118–123  ·  view source on GitHub ↗
(rawState, contractRegistry)

Source from the content-addressed store, hash-verified

116 }
117 // Load JSON state into the server
118 loadJsonState(rawState, contractRegistry) {
119 console.log('Loading JSON state...');
120 const state = performStateSubstitutions(rawState, contractRegistry);
121 this._stateMap.set(CURRENT_STATE_KEY, state);
122 console.log('JSON state loaded');
123 }
124 // Check if the request is for the current state
125 _isStateRequest(ctx) {
126 return ctx.method === 'GET' && ctx.path === '/state.json';

Callers 1

loadFixtureFunction · 0.80

Calls 2

logMethod · 0.45

Tested by

no test coverage detected