@@ -5,6 +5,7 @@ use std::{env, fs, path::Path};
5
5
6
6
const IMPORTED_MAINNET_TXNS : & str = "imported_mainnet_txns" ;
7
7
const IMPORTED_TESTNET_TXNS : & str = "imported_testnet_txns" ;
8
+ const IMPORTED_DEVNET_TXNS : & str = "imported_devnet_txns" ;
8
9
const SCRIPTED_TRANSACTIONS_TXNS : & str = "scripted_transactions" ;
9
10
#[ derive( Default ) ]
10
11
pub struct TransactionCodeBuilder {
@@ -113,12 +114,14 @@ fn main() {
113
114
// Create necessary directories if missing
114
115
create_directory_if_missing ( & format ! ( "json_transactions/{}" , IMPORTED_MAINNET_TXNS ) ) ;
115
116
create_directory_if_missing ( & format ! ( "json_transactions/{}" , IMPORTED_TESTNET_TXNS ) ) ;
117
+ create_directory_if_missing ( & format ! ( "json_transactions/{}" , IMPORTED_DEVNET_TXNS ) ) ;
116
118
create_directory_if_missing ( & format ! ( "json_transactions/{}" , SCRIPTED_TRANSACTIONS_TXNS ) ) ;
117
119
118
120
// Using the builder pattern to construct the code
119
121
let code = TransactionCodeBuilder :: new ( )
120
122
. add_directory ( IMPORTED_MAINNET_TXNS , IMPORTED_MAINNET_TXNS , false )
121
123
. add_directory ( IMPORTED_TESTNET_TXNS , IMPORTED_TESTNET_TXNS , false )
124
+ . add_directory ( IMPORTED_DEVNET_TXNS , IMPORTED_DEVNET_TXNS , false )
122
125
. add_directory ( SCRIPTED_TRANSACTIONS_TXNS , SCRIPTED_TRANSACTIONS_TXNS , true )
123
126
. add_transaction_name_function ( )
124
127
. build ( ) ;
0 commit comments