diff --git a/build/StarcoinFramework/BuildInfo.yaml b/build/StarcoinFramework/BuildInfo.yaml index 73e27026..779732bf 100644 --- a/build/StarcoinFramework/BuildInfo.yaml +++ b/build/StarcoinFramework/BuildInfo.yaml @@ -309,7 +309,7 @@ compiled_package_info: ? address: "0x00000000000000000000000000000001" name: YieldFarmingV2 : StarcoinFramework - source_digest: 8E7AEB189849D23881D6C14563228D20E8991069B2A727CBB2D0A5FBAA816EC4 + source_digest: B7532EE5E9C8A1193C77FE19E7AE49D681E650064C2BE33605779EE6B7E56BC6 build_flags: dev_mode: false test_mode: false diff --git a/integration-tests/daospace/stake_to_sbt_plugin.exp b/integration-tests/daospace/stake_to_sbt_plugin.exp index e0a1a9d0..10be7f63 100644 --- a/integration-tests/daospace/stake_to_sbt_plugin.exp +++ b/integration-tests/daospace/stake_to_sbt_plugin.exp @@ -18,13 +18,13 @@ task 4 'run'. lines 9-17: task 6 'run'. lines 61-69: { - "gas_used": 1288799, + "gas_used": 1672577, "status": "Executed" } task 7 'run'. lines 71-107: { - "gas_used": 569616, + "gas_used": 654799, "status": "Executed" } @@ -52,24 +52,24 @@ task 10 'run'. lines 124-137: task 11 'run'. lines 139-155: { - "gas_used": 336881, + "gas_used": 422064, "status": "Executed" } task 13 'run'. lines 159-172: { - "gas_used": 124169, + "gas_used": 216758, "status": "Executed" } task 14 'run'. lines 174-190: { - "gas_used": 458402, + "gas_used": 543585, "status": "Executed" } task 16 'run'. lines 194-209: { - "gas_used": 133134, + "gas_used": 225723, "status": "Executed" } diff --git a/integration-tests/starcoin_dao/starcoin_dao.exp b/integration-tests/starcoin_dao/starcoin_dao.exp index 880b7ff8..967f1b6e 100644 --- a/integration-tests/starcoin_dao/starcoin_dao.exp +++ b/integration-tests/starcoin_dao/starcoin_dao.exp @@ -2,6 +2,6 @@ processed 4 tasks task 3 'run'. lines 8-16: { - "gas_used": 1405560, + "gas_used": 1789338, "status": "Executed" } diff --git a/sources/daospace/DAOSpace.move b/sources/daospace/DAOSpace.move index 84d7b28d..7537a5eb 100644 --- a/sources/daospace/DAOSpace.move +++ b/sources/daospace/DAOSpace.move @@ -736,7 +736,7 @@ module StarcoinFramework::DAOSpace { IdentifierNFT::owns, DAOMemberBody>(member_addr) } - struct PluginEvent has key, store { + struct PluginEvent has key, store { event_handle: Event::EventHandle, } @@ -1115,6 +1115,7 @@ module StarcoinFramework::DAOSpace { public fun acquire_plugin_event_cap(_witness: &PluginT): DAOPluginEventCap acquires InstalledPluginInfo { validate_cap(plugin_event_cap_type()); DAOPluginEventCap {} + } /// Delegate the token mint capability to DAO /// _witness parameter ensures that the caller is the module which define PluginT diff --git a/sources/daospaceplugin/StakeToSBTPlugin.move b/sources/daospaceplugin/StakeToSBTPlugin.move index ed66f984..a8439725 100644 --- a/sources/daospaceplugin/StakeToSBTPlugin.move +++ b/sources/daospaceplugin/StakeToSBTPlugin.move @@ -95,8 +95,8 @@ module StarcoinFramework::StakeToSBTPlugin { /// Accept token with token type by given DAO root capability public fun accept_token_with_root_cap(_cap: &DAOSpace::DAORootCap) { - accept_token(AcceptTokenCap {}); install_event(); + accept_token(AcceptTokenCap {}); } public fun install_event() {