File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
framework/components/blockchain Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package blockchain
22
33import (
44 "fmt"
5+ "github.com/testcontainers/testcontainers-go"
56)
67
78// Input is a blockchain network configuration params
@@ -29,11 +30,12 @@ type Input struct {
2930
3031// Output is a blockchain network output, ChainID and one or more nodes that forms the network
3132type Output struct {
32- UseCache bool `toml:"use_cache"`
33- Family string `toml:"family"`
34- ContainerName string `toml:"container_name"`
35- ChainID string `toml:"chain_id"`
36- Nodes []* Node `toml:"nodes"`
33+ UseCache bool `toml:"use_cache"`
34+ Family string `toml:"family"`
35+ ContainerName string `toml:"container_name"`
36+ Container testcontainers.Container `toml:"-"`
37+ ChainID string `toml:"chain_id"`
38+ Nodes []* Node `toml:"nodes"`
3739}
3840
3941// Node represents blockchain node output, URLs required for connection locally and inside docker network
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ func newSolana(in *Input) (*Output, error) {
143143 UseCache : true ,
144144 Family : "solana" ,
145145 ContainerName : containerName ,
146+ Container : c ,
146147 Nodes : []* Node {
147148 {
148149 HostWSUrl : fmt .Sprintf ("ws://%s:%s" , host , in .WSPort ),
You can’t perform that action at this time.
0 commit comments