18 lines
491 B
Go
18 lines
491 B
Go
package gethbridge
|
|
|
|
import (
|
|
whispertypes "github.com/status-im/status-go/protocol/transport/whisper/types"
|
|
whisper "github.com/status-im/whisper/whisperv6"
|
|
)
|
|
|
|
// GetGethSyncMailRequestFrom converts a whisper SyncMailRequest struct from a SyncMailRequest struct
|
|
func GetGethSyncMailRequestFrom(r *whispertypes.SyncMailRequest) *whisper.SyncMailRequest {
|
|
return &whisper.SyncMailRequest{
|
|
Lower: r.Lower,
|
|
Upper: r.Upper,
|
|
Bloom: r.Bloom,
|
|
Limit: r.Limit,
|
|
Cursor: r.Cursor,
|
|
}
|
|
}
|