Skip to content

Commit 0f81147

Browse files
committed
add port option to sui
1 parent d92df0e commit 0f81147

File tree

1 file changed

+3
-3
lines changed
  • framework/components/blockchain

1 file changed

+3
-3
lines changed

framework/components/blockchain/sui.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ func defaultSui(in *Input) {
8181
if in.Image == "" {
8282
in.Image = "mysten/sui-tools:devnet"
8383
}
84-
if in.Port != "" {
85-
framework.L.Warn().Msgf("'port' field is set but only default port can be used: %s", DefaultSuiNodePort)
84+
if in.Port == "" {
85+
in.Port = DefaultSuiNodePort
8686
}
87-
in.Port = DefaultSuiNodePort
8887
}
8988

9089
func newSui(in *Input) (*Output, error) {
@@ -127,6 +126,7 @@ func newSui(in *Input) (*Output, error) {
127126
"start",
128127
"--force-regenesis",
129128
"--with-faucet",
129+
"--fullnode-rpc-port", in.Port,
130130
},
131131
Files: []testcontainers.ContainerFile{
132132
{

0 commit comments

Comments
 (0)