1: <?php declare( strict_types = 1 );
2:
3: namespace Waves\Model;
4:
5: class WavesConfig
6: {
7: private static ChainId $chainId;
8:
9: static function chainId( ChainId $chainId = null ): ChainId
10: {
11: if( isset( $chainId ) )
12: self::$chainId = $chainId;
13: else if( !isset( self::$chainId ) )
14: self::$chainId = ChainId::MAINNET();
15: return self::$chainId;
16: }
17: }
18: