Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change testnet from goerli to sepolia #576

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contracts/game/src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod Game {
use core::starknet::SyscallResultTrait;
const TEST_ENTROPY: u64 = 12303548;
const MAINNET_CHAIN_ID: felt252 = 0x534e5f4d41494e;
const GOERLI_CHAIN_ID: felt252 = 0x534e5f474f45524c49;
const SEPOLIA_CHAIN_ID: felt252 = 0x534e5f5345504f4c4941;
const MINIMUM_SCORE_FOR_PAYOUTS: u16 = 200;
const LOOT_NAME_STORAGE_INDEX_1: u8 = 0;
const LOOT_NAME_STORAGE_INDEX_2: u8 = 1;
Expand Down Expand Up @@ -2472,7 +2472,7 @@ mod Game {
let chain_id = starknet::get_execution_info().unbox().tx_info.unbox().chain_id;
if chain_id == MAINNET_CHAIN_ID {
_get_mainnet_entropy(adventurer_id, start_block)
} else if chain_id == GOERLI_CHAIN_ID {
} else if chain_id == SEPOLIA_CHAIN_ID {
_get_testnet_entropy(adventurer_id, start_block)
} else {
_get_basic_entropy(adventurer_id, start_block)
Expand Down Expand Up @@ -3030,7 +3030,7 @@ mod Game {
let chain_id = starknet::get_execution_info().unbox().tx_info.unbox().chain_id;
if chain_id == MAINNET_CHAIN_ID {
_get_mainnet_entropy(adventurer_id, start_block)
} else if chain_id == GOERLI_CHAIN_ID {
} else if chain_id == SEPOLIA_CHAIN_ID {
_get_testnet_entropy(adventurer_id, start_block)
} else {
_get_basic_entropy(adventurer_id, start_block)
Expand Down
Loading