2019-11-23 17:57:05 +00:00
|
|
|
package gethbridge
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/status-im/status-go/eth-node/types"
|
2019-12-09 10:06:04 +00:00
|
|
|
"github.com/status-im/status-go/whisper"
|
2019-11-23 17:57:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// NewGethSyncEventResponseWrapper returns a types.SyncEventResponse object that mimics Geth's SyncEventResponse
|
|
|
|
func NewGethSyncEventResponseWrapper(syncEventResponse whisper.SyncEventResponse) types.SyncEventResponse {
|
|
|
|
return types.SyncEventResponse{
|
|
|
|
Cursor: syncEventResponse.Cursor,
|
|
|
|
Error: syncEventResponse.Error,
|
|
|
|
}
|
|
|
|
}
|