From 8ffdecaa09af0a5af019e75e65312fb644adc0f7 Mon Sep 17 00:00:00 2001 From: mubarak23 Date: Mon, 21 Oct 2024 13:26:12 +0100 Subject: [PATCH] feat:use account v3 contract --- Scarb.toml | 2 +- tests/test_hub.cairo | 2 +- tests/test_profile.cairo | 2 +- tests/test_publication.cairo | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scarb.toml b/Scarb.toml index 0f14bf3..9cd0427 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -23,5 +23,5 @@ url= "https://starknet-sepolia.public.blastapi.io" [[target.starknet-contract]] casm = true -build-external-contracts = ["token_bound_accounts::components::presets::account_preset::AccountPreset"] +build-external-contracts = ["token_bound_accounts::accountV3::accountV3::AccountV3"] allowed-libfuncs-list.name = "experimental" \ No newline at end of file diff --git a/tests/test_hub.cairo b/tests/test_hub.cairo index 9f046f5..258e42a 100644 --- a/tests/test_hub.cairo +++ b/tests/test_hub.cairo @@ -46,7 +46,7 @@ fn __setup__() -> (ContractAddress, ContractAddress, ContractAddress, ContractAd let registry_class_hash = declare("Registry").unwrap().contract_class(); // declare tokenbound account - let account_class_hash = declare("AccountPreset").unwrap().contract_class(); + let account_class_hash = declare("AccountV3").unwrap().contract_class(); // declare follownft let follow_nft_classhash = declare("Follow").unwrap().contract_class(); diff --git a/tests/test_profile.cairo b/tests/test_profile.cairo index 6db0d08..3ddcf10 100644 --- a/tests/test_profile.cairo +++ b/tests/test_profile.cairo @@ -32,7 +32,7 @@ fn __setup__() -> (ContractAddress, ContractAddress, felt252, felt252, ContractA let (registry_contract_address, _) = registry_class_hash.deploy(@array![]).unwrap_syscall(); // declare account - let account_class_hash = declare("AccountPreset").unwrap().contract_class(); + let account_class_hash = declare("AccountV3").unwrap().contract_class(); // declare follownft let follow_nft_classhash = declare("Follow").unwrap().contract_class(); diff --git a/tests/test_publication.cairo b/tests/test_publication.cairo index 45b95ba..7224b4e 100644 --- a/tests/test_publication.cairo +++ b/tests/test_publication.cairo @@ -65,7 +65,7 @@ fn __setup__() -> ( .unwrap_syscall(); // declare account - let account_class_hash = declare("AccountPreset").unwrap().contract_class(); + let account_class_hash = declare("AccountV3").unwrap().contract_class(); //declare collectnft let collect_nft_classhash = declare("CollectNFT").unwrap().contract_class();