(rawState, contractRegistry)
| 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'; |
no test coverage detected