Skip to content

Commit 6c5ee4c

Browse files
authored
Update mempool_test_helpers.go (#1139)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. --> ## Overview When I follow the instructions here: https://rollkit.dev/tutorials/gm-world#macos-setup, I encountered the following error: ``` github.com/cosmos/cosmos-sdk/server imports github.com/rollkit/rollkit/node imports github.com/rollkit/rollkit/mempool/v1 imports github.com/cometbft/cometbft/abci/example/code: package github.com/cometbft/cometbft/abci/example/code provided by github.com/cometbft/cometbft at latest version v0.37.2 but not at required version v0.38.0-rc2 ``` Then I finally found package `github.com/cometbft/cometbft/abci/example/code` has been removed. Use the code defined in the abci types instead. ## Checklist <!-- Please complete the checklist to ensure that the PR is ready to be reviewed. IMPORTANT: PRs should be left in Draft until the below checklist is completed. --> - [ ] New and updated code has appropriate documentation - [ ] New and updated code has new and/or updated testing - [ ] Required CI checks are passing - [ ] Visual proof for any user facing features like CLI or documentation updates - [ ] Linked issues closed with keywords
1 parent 472f245 commit 6c5ee4c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mempool/v1/mempool_test_helpers.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/cometbft/cometbft/abci/example/code"
1413
"github.com/cometbft/cometbft/abci/example/kvstore"
1514
abci "github.com/cometbft/cometbft/abci/types"
1615
"github.com/cometbft/cometbft/config"
@@ -64,7 +63,7 @@ func (app *application) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx {
6463
return abci.ResponseCheckTx{
6564
Priority: priority,
6665
Sender: sender,
67-
Code: code.CodeTypeOK,
66+
Code: abci.CodeTypeOK,
6867
GasWanted: 1,
6968
}
7069
}

0 commit comments

Comments
 (0)