11from stests import chain
22from stests .core import cache
33from stests .core import factory
4- from stests .core .types .chain import AccountType
54from stests .core .types .chain import DeployType
65from stests .core .types .orchestration import ExecutionContext
7- from stests .generators .utils import verification
86from stests .generators .utils .infra import get_network_node
97
108
9+
1110# Step label.
1211LABEL = "auction-bid-withdraw"
1312
@@ -24,11 +23,8 @@ def execute(ctx: ExecutionContext):
2423 # Set target network / node.
2524 network , node = get_network_node (ctx )
2625
27- # Set validator account.
28- validator = factory .create_account_for_run (ctx , _USER_ACCOUNT_INDEX , "WG-200" )
29-
3026 # Submit deploy.
31- dispatch_info = chain .DeployDispatchInfo (validator , network , node )
27+ dispatch_info = chain .DeployDispatchInfo (node . account , network , node )
3228 deploy_hash , dispatch_duration , dispatch_attempts = \
3329 chain .set_auction_bid_withdraw (
3430 dispatch_info ,
@@ -38,19 +34,10 @@ def execute(ctx: ExecutionContext):
3834 # Update cache: deploy.
3935 cache .state .set_deploy (factory .create_deploy_for_run (
4036 ctx = ctx ,
41- account = validator ,
37+ account = node . account ,
4238 node = node ,
4339 deploy_hash = deploy_hash ,
4440 dispatch_attempts = dispatch_attempts ,
4541 dispatch_duration = dispatch_duration ,
4642 typeof = DeployType .AUCTION_BID_WITHDRAW
4743 ))
48-
49-
50- def verify (ctx : ExecutionContext ):
51- """Step execution verifier.
52-
53- :param ctx: Execution context information.
54-
55- """
56- verification .verify_deploy_count (ctx , 1 )
0 commit comments