Skip to content

Commit eb2147e

Browse files
return conainter
1 parent e394db3 commit eb2147e

File tree

1 file changed

+7
-2
lines changed
  • framework/components/blockchain

1 file changed

+7
-2
lines changed

framework/components/blockchain/tron.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,16 @@ func newTron(in *Input) (*Output, error) {
114114
Started: true,
115115
})
116116
if err != nil {
117-
return nil, err
117+
return &Output{
118+
Container: c,
119+
}, err
118120
}
119121

120122
host, err := c.Host(ctx)
121123
if err != nil {
122-
return nil, err
124+
return &Output{
125+
Container: c,
126+
}, err
123127
}
124128

125129
return &Output{
@@ -128,6 +132,7 @@ func newTron(in *Input) (*Output, error) {
128132
Type: in.Type,
129133
Family: FamilyTron,
130134
ContainerName: containerName,
135+
Container: c,
131136
Nodes: []*Node{
132137
{
133138
ExternalHTTPUrl: fmt.Sprintf("http://%s:%s", host, in.Port),

0 commit comments

Comments
 (0)