Skip to content

Commit 22ea37d

Browse files
committed
v0.7.2
1 parent 5a10fd2 commit 22ea37d

31 files changed

+231
-95
lines changed

scripts/cairo-format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
ROOT_DIR = os.path.dirname(os.path.dirname(__file__))
99
EXECUTABLE = os.path.join(ROOT_DIR, ".downloads", "cairo", "bin", "cairo-format")
10-
EXPECTED_EXECUTABLE_VERSION = "cairo-format 2.3.0"
10+
EXPECTED_EXECUTABLE_VERSION = "cairo-format 2.6.3"
1111

1212

1313
def main():

scripts/cairo-test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
ROOT_DIR = os.path.dirname(os.path.dirname(__file__))
99
EXECUTABLE = os.path.join(ROOT_DIR, ".downloads", "cairo", "bin", "cairo-test")
10-
EXPECTED_EXECUTABLE_VERSION = "cairo-test 2.3.0"
10+
EXPECTED_EXECUTABLE_VERSION = "cairo-test 2.6.3"
1111

1212

1313
def main():

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ printf "${COLOR_OFF}"
3030
mkdir -p .downloads
3131
cd .downloads
3232

33-
wget -c https://github.com/starkware-libs/cairo/releases/download/v2.3.0/release-x86_64-unknown-linux-musl.tar.gz -O - | tar -xz
33+
wget -c https://github.com/starkware-libs/cairo/releases/download/v2.6.3/release-x86_64-unknown-linux-musl.tar.gz -O - | tar -xz
3434
curl https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.8.20+commit.a1b79de6 -o solc-0.8.20 && chmod +x solc-0.8.20
3535

3636
cd ..

scripts/starknet-compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
ROOT_DIR = os.path.dirname(os.path.dirname(__file__))
99
EXECUTABLE = os.path.join(ROOT_DIR, ".downloads", "cairo", "bin", "starknet-compile")
10-
EXPECTED_EXECUTABLE_VERSION = "starknet-compile 2.3.0"
10+
EXPECTED_EXECUTABLE_VERSION = "starknet-compile 2.6.3"
1111

1212

1313
def main():

src/cairo/legacy_bridge_eic.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mod LegacyBridgeUpgradeEIC {
4141
RoleAdminChanged: RoleAdminChanged,
4242
}
4343

44-
#[external(v0)]
44+
#[abi(embed_v0)]
4545
impl EICInitializable of IEICInitializable<ContractState> {
4646
// Sets up the values needed in the legacy l2 bridge upgrade:
4747
// 1. Roles (governance) setup

src/cairo/legacy_bridge_tester.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mod LegacyBridgeTester {
4141
poseidon::poseidon_hash_span(hash_input.span())
4242
}
4343

44-
#[external(v0)]
44+
#[abi(embed_v0)]
4545
impl Replaceable of IReplaceable<ContractState> {
4646
fn get_upgrade_delay(self: @ContractState) -> u64 {
4747
self.upgrade_delay.read()

src/cairo/lib.cairo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ mod token_test_setup_interface;
1616
// Modules.
1717
mod token_bridge;
1818
mod legacy_bridge_eic;
19+
mod set_as_single_eic;
1920
mod roles_init_eic;
2021
mod update_712_vars_eic;
2122
mod err_msg;

src/cairo/permissioned_token_test.cairo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ mod permissioned_token_test {
9191
starknet::testing::set_contract_address(permitted_minter);
9292
let mint_recipient = starknet::contract_address_const::<1337>();
9393
mintable_token.permissioned_mint(account: mint_recipient, amount: 1);
94+
let max_u255 = u256 {
95+
low: 0xffffffffffffffffffffffffffffffff, high: 0x7fffffffffffffffffffffffffffffff
96+
};
97+
mintable_token.permissioned_mint(account: mint_recipient, amount: max_u255);
9498
}
9599

96100
#[test]

src/cairo/replaceability_test.cairo

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mod EICTestContract {
99
upgrade_delay: u64,
1010
}
1111

12-
#[external(v0)]
12+
#[abi(embed_v0)]
1313
impl EICInitializable of IEICInitializable<ContractState> {
1414
// Adds the value in eic_init_data to the storage variable.
1515
fn eic_initialize(ref self: ContractState, eic_init_data: Span<felt252>) {
@@ -68,9 +68,6 @@ mod replaceability_test {
6868
}
6969

7070
fn dummy_implementation_data(final: bool) -> ImplementationData {
71-
// Set the eic_init_data calldata.
72-
let calldata = array!['dummy', 'arbitrary', 'values'];
73-
7471
ImplementationData {
7572
impl_hash: get_token_bridge_impl_hash(), eic_data: Option::None(()), final: final
7673
}

src/cairo/roles_init_eic.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mod RolesExternalInitializer {
3434
RoleAdminChanged: RoleAdminChanged,
3535
}
3636

37-
#[external(v0)]
37+
#[abi(embed_v0)]
3838
impl EICInitializable of IEICInitializable<ContractState> {
3939
fn eic_initialize(ref self: ContractState, eic_init_data: Span<felt252>) {
4040
assert(eic_init_data.len() == 0, 'NO_EIC_INIT_DATA_EXPECTED');

0 commit comments

Comments
 (0)