Verify write transactions in E2E tests #22
@ -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 {
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user