@@ -5,20 +5,23 @@ package aptos
55import (
66 "time"
77
8- "github.com/aptos-labs/aptos-go-sdk"
9- "github.com/aptos-labs/aptos-go-sdk/crypto"
108 "github.com/stretchr/testify/suite"
119
1210 cselectors "github.com/smartcontractkit/chain-selectors"
11+
12+ "github.com/smartcontractkit/chainlink-testing-framework/framework/components/blockchain"
13+
14+ "github.com/aptos-labs/aptos-go-sdk"
15+ "github.com/aptos-labs/aptos-go-sdk/crypto"
16+
1317 "github.com/smartcontractkit/chainlink-aptos/bindings/mcms"
1418 mcmstest "github.com/smartcontractkit/chainlink-aptos/bindings/mcms_test"
15- "github.com/smartcontractkit/chainlink-testing-framework/framework/components/blockchain"
1619
1720 e2e "github.com/smartcontractkit/mcms/e2e/tests"
1821 "github.com/smartcontractkit/mcms/types"
1922)
2023
21- type AptosTestSuite struct {
24+ type TestSuite struct {
2225 suite.Suite
2326 e2e.TestSetup
2427
@@ -29,7 +32,7 @@ type AptosTestSuite struct {
2932 MCMSTestContract mcmstest.MCMSTest
3033}
3134
32- func (a * AptosTestSuite ) SetupSuite () {
35+ func (a * TestSuite ) SetupSuite () {
3336 a .TestSetup = * e2e .InitializeSharedTestSetup (a .T ())
3437 details , err := cselectors .GetChainDetailsByChainIDAndFamily (a .AptosChain .ChainID , cselectors .FamilyAptos )
3538 a .Require ().NoError (err )
@@ -46,7 +49,7 @@ func (a *AptosTestSuite) SetupSuite() {
4649 a .Require ().NoError (err )
4750}
4851
49- func (a * AptosTestSuite ) deployMCMSContract () {
52+ func (a * TestSuite ) deployMCMSContract () {
5053 mcmsSeed := mcms .DefaultSeed + time .Now ().String ()
5154 addr , tx , mcmsContract , err := mcms .DeployToResourceAccount (a .deployerAccount , a .AptosRPCClient , mcmsSeed )
5255 a .Require ().NoError (err )
@@ -57,7 +60,7 @@ func (a *AptosTestSuite) deployMCMSContract() {
5760 a .MCMSContract = mcmsContract
5861}
5962
60- func (a * AptosTestSuite ) deployMCMSTestContract () {
63+ func (a * TestSuite ) deployMCMSTestContract () {
6164 if a .MCMSContract == nil {
6265 a .T ().Fatal ("MCMS contract not found. Can only deploy MCMS user contract after MCMS contract has been deployed." )
6366 }
0 commit comments