This commit is contained in:
Igor Sirotin 2024-11-13 23:35:33 +07:00
parent 01b5d1bebb
commit 6cc2b19ea7
No known key found for this signature in database
GPG Key ID: 425E227CAAB81F95
3 changed files with 11 additions and 6 deletions

View File

@ -3,6 +3,9 @@
version=3
oldVersion=$((version - 1))
echo "version=${version}"
echo "oldVersion=${oldVersion}"
rm extkeys/go.sum
rm extkeys/go.mod
rm exchanges/go.sum
@ -11,6 +14,8 @@ rm exchanges/go.mod
sed -i '' "s|github.com/status-im/status-go/v${oldVersion}|github.com/status-im/status-go/v${version}|g" cmd/generate_handlers/generate_handlers_template.txt
sed -i '' "s|github.com/status-im/status-go/v${oldVersion}|github.com/status-im/status-go/v${version}|g" cmd/status-backend/server/parse-api/endpoints_template.txt
#make generate
mod upgrade -tag ${version}
find . -name "*.go" -exec sed -i '' "s/\/v${version}\/v${version}/\/v${version}/g" {} +

View File

@ -10,10 +10,10 @@ import (
"github.com/golang/protobuf/proto"
"go.uber.org/zap"
"github.com/status-im/status-go/protocol/v2/common"
"github.com/status-im/status-go/protocol/v2/protobuf"
"github.com/status-im/status-go/protocol/v2/transport"
v1protocol "github.com/status-im/status-go/v3/protocol/v1"
"github.com/status-im/status-go/v2/protocol/common"
"github.com/status-im/status-go/v2/protocol/protobuf"
"github.com/status-im/status-go/v2/protocol/transport"
v1protocol "github.com/status-im/status-go/v2/protocol/v1"
)
func (m *Messenger) dispatchToHandler(messageState *ReceivedMessageState, protoBytes []byte, msg *v1protocol.StatusMessage, filter transport.Filter, fromArchive bool) error {

View File

@ -3,7 +3,7 @@
package server
import statusgo "github.com/status-im/status-go/v3/mobile"
import statusgo "github.com/status-im/status-go/v2/mobile"
var EndpointsWithRequest = map[string]func(string) string{
{{- range .FunctionsWithResp }}