From 28c77e8b16972c9c2209bf58685c3766d2e68614 Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:17:24 -0800 Subject: [PATCH] remove CadenceBlocklist initialization from FlowEVMBridgeConfig --- cadence/contracts/bridge/FlowEVMBridgeConfig.cdc | 9 --------- .../bridge/admin/blocklist/init_cadence_blocklist.cdc | 9 --------- 2 files changed, 18 deletions(-) delete mode 100644 cadence/transactions/bridge/admin/blocklist/init_cadence_blocklist.cdc diff --git a/cadence/contracts/bridge/FlowEVMBridgeConfig.cdc b/cadence/contracts/bridge/FlowEVMBridgeConfig.cdc index 0fec0cc9..6a33d76d 100644 --- a/cadence/contracts/bridge/FlowEVMBridgeConfig.cdc +++ b/cadence/contracts/bridge/FlowEVMBridgeConfig.cdc @@ -306,15 +306,6 @@ contract FlowEVMBridgeConfig { } } - access(all) fun initCadenceBlocklist() { - let cadenceBlocklistStoragePath = /storage/cadenceBlocklist - assert( - self.account.storage.type(at: cadenceBlocklistStoragePath) == nil, - message: "CadenceBlocklist already stored" - ) - self.account.storage.save(<-create CadenceBlocklist(), to: cadenceBlocklistStoragePath) - } - /// CadenceBlocklist resource stores a mapping of Cadence Types that are blocked from onboarding to the bridge /// access(all) resource CadenceBlocklist { diff --git a/cadence/transactions/bridge/admin/blocklist/init_cadence_blocklist.cdc b/cadence/transactions/bridge/admin/blocklist/init_cadence_blocklist.cdc deleted file mode 100644 index 9ce0a061..00000000 --- a/cadence/transactions/bridge/admin/blocklist/init_cadence_blocklist.cdc +++ /dev/null @@ -1,9 +0,0 @@ -import "FlowEVMBridgeConfig" - -transaction { - prepare(signer: &Account) {} - - execute { - FlowEVMBridgeConfig.initCadenceBlocklist() - } -} \ No newline at end of file