Add reference
All checks were successful
Build / build (pull_request) Successful in 2m42s
Lint / Run golangci-lint (pull_request) Successful in 4m1s
E2E Tests / test-e2e (pull_request) Successful in 4m8s
Integration Tests / test-integration (pull_request) Successful in 2m2s
Unit Tests / test-unit (pull_request) Successful in 2m3s

This commit is contained in:
Prathamesh Musale 2024-03-12 17:16:34 +05:30
parent 36a26eef54
commit 5b83cb7479
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,8 @@ import (
"git.vdb.to/cerc-io/laconic2d/testutil/network"
)
// Reference: https://github.com/cosmos/cosmos-sdk/blob/v0.50.3/testutil/cli/tx.go#L15
// CheckTxCode verifies that the transaction result returns a specific code
// Takes a network, wait for two blocks and fetch the transaction from its hash
func CheckTxCode(network *network.Network, clientCtx client.Context, txHash string, expectedCode uint32) error {

View File

@ -68,5 +68,7 @@ package network
/*
NOTE:
Copied over from https://github.com/cosmos/cosmos-sdk/tree/v0.50.3/testutil/network
Patch: Skipped network.LatestHeight() call at the end of New()
Patch:
- Skipped network.LatestHeight() call at the end of New()
- Removed block timeouts
*/