File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2626 # TODO - periodically check if conditional services are supported; https://github.com/actions/runner/issues/822
2727 services :
2828 devnet :
29- image : ${{ inputs.use-rpc-devnet && 'shardlabs/starknet-devnet-rs:d04cbd73800793bcaf09e708a937a5df08987d98 -amd-seed0' || inputs.use-seq-devnet && 'shardlabs/starknet-devnet:0.6.3-seed0' || '' }}
29+ image : ${{ inputs.use-rpc-devnet && 'shardlabs/starknet-devnet-rs:0c82d023f35bb77c4b5f4afd885ab14e44b73130 -amd-seed0' || inputs.use-seq-devnet && 'shardlabs/starknet-devnet:0.6.3-seed0' || '' }}
3030 # image: ${{ (inputs.use-rpc-devnet || inputs.use-seq-devnet) && 'shardlabs/starknet-devnet:0.6.3-seed0' || '' }}
31- # image: shardlabs/starknet-devnet-rs:d04cbd73800793bcaf09e708a937a5df08987d98 -amd-seed0
31+ # image: shardlabs/starknet-devnet-rs:0c82d023f35bb77c4b5f4afd885ab14e44b73130 -amd-seed0
3232 ports :
3333 - 5050:5050
3434
Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ export const getTestAccount = (provider: ProviderInterface) => {
7373 ) ;
7474} ;
7575
76+ export const createBlockForDevnet = async ( ) : Promise < void > => {
77+ if ( ! ( process . env . IS_RPC_DEVNET === 'true' ) ) return ;
78+ await fetch ( new URL ( '/create_block' , process . env . TEST_RPC_URL ) , { method : 'POST' } ) ;
79+ } ;
80+
7681const describeIf = ( condition : boolean ) => ( condition ? describe : describe . skip ) ;
7782export const describeIfSequencer = describeIf ( process . env . IS_SEQUENCER === 'true' ) ;
7883export const describeIfRpc = describeIf ( process . env . IS_RPC === 'true' ) ;
Original file line number Diff line number Diff line change 99 compiledErc20Echo ,
1010 compiledL1L2 ,
1111 compiledOpenZeppelinAccount ,
12+ createBlockForDevnet ,
1213 describeIfDevnet ,
1314 describeIfNotDevnet ,
1415 describeIfRpc ,
@@ -27,6 +28,7 @@ describeIfRpc('RPCProvider', () => {
2728 expect ( account ) . toBeInstanceOf ( Account ) ;
2829 const accountKeyPair = utils . randomPrivateKey ( ) ;
2930 accountPublicKey = getStarkKey ( accountKeyPair ) ;
31+ await createBlockForDevnet ( ) ;
3032 } ) ;
3133
3234 test ( 'getChainId' , async ( ) => {
You can’t perform that action at this time.
0 commit comments