Skip to content

Commit

Permalink
Update StarknetChainId names
Browse files Browse the repository at this point in the history
- Change name to `StarknetChainId.name` for chain id `SN_NAME`
  • Loading branch information
DelevoXDG committed Jan 31, 2024
1 parent f71e797 commit 3728377
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Starknet/Data/StarknetChainId.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Foundation
public enum StarknetChainId: String, Codable, Equatable {
case mainnet = "0x534e5f4d41494e"
case goerli = "0x534e5f474f45524c49"
case sepolia_testnet = "0x534e5f5345504f4c4941"
case sepolia_integration = "0x534e5f494e544547524154494f4e5f5345504f4c4941"
case sepolia = "0x534e5f5345504f4c4941"
case integration_sepolia = "0x534e5f494e544547524154494f4e5f5345504f4c4941"

public var feltValue: Felt {
Felt(fromHex: self.rawValue)!
Expand All @@ -14,7 +14,7 @@ public enum StarknetChainId: String, Codable, Equatable {
enum CodingKeys: String, CodingKey {
case mainnet = "0x534e5f4d41494e"
case goerli = "0x534e5f474f45524c49"
case sepolia_testnet = "0x534e5f5345504f4c4941"
case sepolia_integration = "0x534e5f494e544547524154494f4e5f5345504f4c4941"
case sepolia = "0x534e5f5345504f4c4941"
case integration_sepolia = "0x534e5f494e544547524154494f4e5f5345504f4c4941"
}
}

0 comments on commit 3728377

Please sign in to comment.