mirror of
https://github.com/status-im/status-go.git
synced 2025-02-06 11:56:01 +00:00
ca92f67014
This is to free the `waku` namespace for interfaces and types that will be moved from `eth-node`.
20 lines
637 B
Go
20 lines
637 B
Go
package gethbridge
|
|
|
|
import (
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
"github.com/status-im/status-go/wakuv1"
|
|
)
|
|
|
|
// NewWakuMailServerResponseWrapper returns a types.MailServerResponse object that mimics Geth's MailServerResponse
|
|
func NewWakuMailServerResponseWrapper(mailServerResponse *wakuv1.MailServerResponse) *types.MailServerResponse {
|
|
if mailServerResponse == nil {
|
|
panic("mailServerResponse should not be nil")
|
|
}
|
|
|
|
return &types.MailServerResponse{
|
|
LastEnvelopeHash: types.Hash(mailServerResponse.LastEnvelopeHash),
|
|
Cursor: mailServerResponse.Cursor,
|
|
Error: mailServerResponse.Error,
|
|
}
|
|
}
|