11
11
from starknet_py .tests .e2e .fixtures .accounts import mint_token_on_devnet
12
12
from starknet_py .tests .e2e .fixtures .constants import (
13
13
MAX_RESOURCE_BOUNDS ,
14
+ MAX_RESOURCE_BOUNDS_L1 ,
14
15
STRK_FEE_CONTRACT_ADDRESS ,
15
16
)
16
17
@@ -197,7 +198,7 @@ async def _get_account_balance_strk(client: FullNodeClient, address: int):
197
198
platform == "win32" ,
198
199
reason = "Testing Ledger is skipped on Windows due to different Speculos setup." ,
199
200
)
200
- async def test_deploy_account_and_transfer (client_fork_mode ):
201
+ async def test_deploy_account_and_transfer (client ):
201
202
# pylint: disable=import-outside-toplevel, reimported, redefined-outer-name, too-many-locals
202
203
# docs-deploy-account-and-transfer: start
203
204
from starknet_py .contract import Contract
@@ -208,15 +209,15 @@ async def test_deploy_account_and_transfer(client_fork_mode):
208
209
209
210
rpc_client = FullNodeClient (node_url = "https://your.node.url" )
210
211
# docs-deploy-account-and-transfer: end
211
- rpc_client = client_fork_mode
212
+ rpc_client = client
212
213
# docs-deploy-account-and-transfer: start
213
214
signer = LedgerSigner (
214
215
chain_id = StarknetChainId .SEPOLIA ,
215
216
)
216
217
# argent v0.4.0 class hash
217
- class_hash = 0x36078334509B514626504EDC9FB252328D1A240E4E948BEF8D0C08DFF45927F
218
- salt = 2
219
- calldata = [0 , signer .public_key , 1 ]
218
+ class_hash = 0x061DAC032F228ABEF9C6626F995015233097AE253A7F72D68552DB02F2971B8F
219
+ salt = 1
220
+ calldata = [signer .public_key ]
220
221
address = compute_address (
221
222
salt = salt ,
222
223
class_hash = class_hash ,
@@ -243,7 +244,7 @@ async def test_deploy_account_and_transfer(client_fork_mode):
243
244
class_hash = class_hash ,
244
245
contract_address_salt = salt ,
245
246
constructor_calldata = calldata ,
246
- auto_estimate = True ,
247
+ l1_resource_bounds = MAX_RESOURCE_BOUNDS_L1 ,
247
248
)
248
249
249
250
await rpc_client .deploy_account (signed_tx )
@@ -258,7 +259,9 @@ async def test_deploy_account_and_transfer(client_fork_mode):
258
259
provider = account , address = STRK_FEE_CONTRACT_ADDRESS
259
260
)
260
261
invocation = await contract .functions ["transfer" ].invoke_v3 (
261
- recipient_address , 100 , auto_estimate = True
262
+ recipient_address ,
263
+ 100 ,
264
+ l1_resource_bounds = MAX_RESOURCE_BOUNDS_L1 ,
262
265
)
263
266
await invocation .wait_for_acceptance ()
264
267
# docs-deploy-account-and-transfer: end
0 commit comments