-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
chopsticks/packages/utils/src/index.ts
Lines 98 to 115 in 8a286d1
| dev: { | |
| newBlock: (param?: Partial<NewBlockParams>): Promise<string> => { | |
| return ws.send('dev_newBlock', [param]) | |
| }, | |
| setStorage: (values: StorageValues, blockHash?: string) => { | |
| return ws.send('dev_setStorage', [values, blockHash]) | |
| }, | |
| timeTravel: (date: string | number) => { | |
| return ws.send<number>('dev_timeTravel', [date]) | |
| }, | |
| setHead: (hashOrNumber: string | number) => { | |
| return ws.send('dev_setHead', [hashOrNumber]) | |
| }, | |
| }, | |
| async teardown() { | |
| await api.disconnect() | |
| await close() | |
| }, |
There is little reason to send those messages over WebSocket. Should just use the Blockchain object directly.
Metadata
Metadata
Assignees
Labels
No labels