diff --git a/framework/components/blockchain/blockchain.go b/framework/components/blockchain/blockchain.go index 86e7695d8..bf8da961c 100644 --- a/framework/components/blockchain/blockchain.go +++ b/framework/components/blockchain/blockchain.go @@ -2,6 +2,7 @@ package blockchain import ( "fmt" + "github.com/testcontainers/testcontainers-go" ) // Input is a blockchain network configuration params @@ -29,11 +30,12 @@ type Input struct { // Output is a blockchain network output, ChainID and one or more nodes that forms the network type Output struct { - UseCache bool `toml:"use_cache"` - Family string `toml:"family"` - ContainerName string `toml:"container_name"` - ChainID string `toml:"chain_id"` - Nodes []*Node `toml:"nodes"` + UseCache bool `toml:"use_cache"` + Family string `toml:"family"` + ContainerName string `toml:"container_name"` + Container testcontainers.Container `toml:"-"` + ChainID string `toml:"chain_id"` + Nodes []*Node `toml:"nodes"` } // Node represents blockchain node output, URLs required for connection locally and inside docker network diff --git a/framework/components/blockchain/solana.go b/framework/components/blockchain/solana.go index 90e79132a..2d97c3085 100644 --- a/framework/components/blockchain/solana.go +++ b/framework/components/blockchain/solana.go @@ -143,6 +143,7 @@ func newSolana(in *Input) (*Output, error) { UseCache: true, Family: "solana", ContainerName: containerName, + Container: c, Nodes: []*Node{ { HostWSUrl: fmt.Sprintf("ws://%s:%s", host, in.WSPort),