Skip to content

Commit 931f391

Browse files
authored
at ictt, sleep between approve and add collateral, to avoid issues due (#2735)
to connecting to different API nodes
1 parent f7af17c commit 931f391

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/ictt/operate.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
_ "embed"
77
"fmt"
88
"math/big"
9+
"time"
910

1011
"github.com/ava-labs/avalanche-cli/pkg/contract"
1112
"github.com/ava-labs/avalanche-cli/pkg/ux"
@@ -449,6 +450,8 @@ func ERC20TokenHomeAddCollateral(
449450
); err != nil {
450451
return err
451452
}
453+
// TODO: use the same API node connection for this two operations
454+
time.Sleep(5 * time.Second)
452455
_, _, err = contract.TxToMethod(
453456
rpcURL,
454457
false,

0 commit comments

Comments
 (0)