Skip to content

Commit b798e26

Browse files
congress: remove temporal add_tc_dismiss_perm and gas adjustments in the execute method
1 parent a2ba55c commit b798e26

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

congress/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Change log entries are to be added to the Unreleased section. Example entry:
2626

2727
### Bug Fixes
2828

29+
## v1.2.0 (2023-12-28)
30+
31+
### Improvements
32+
33+
- Remove temporal `add_tc_dismiss_perm` and gas adjustments in the `execute` method related to the wrong Gas settings in the TC proposals (and missing checks mentioned in the v1.1.2 release).
34+
2935
## v1.1.2 (2023-12-28)
3036

3137
### Improvements

congress/src/lib.rs

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,8 @@ impl Contract {
294294
promise = promise.function_call(
295295
action.method_name.clone(),
296296
action.args.clone().into(),
297-
// TODO: remove the following changes in v1.2
298-
0, //action.deposit.0,
299-
Gas(action.gas.0) - EXEC_SELF_GAS,
297+
action.deposit.0,
298+
Gas(action.gas.0),
300299
);
301300
}
302301
result = promise.into();
@@ -573,25 +572,6 @@ impl Contract {
573572
self.members.set(&m);
574573
}
575574
}
576-
577-
/// v1.1.2 release: we missed TC perm to dismiss a member from "self"
578-
// TODO: we can remove this method in the next release
579-
pub fn add_tc_dismiss_perm(&mut self) {
580-
let tc = env::predecessor_account_id();
581-
require!(tc.as_str() == "congress-tc-v1.ndc-gwg.near");
582-
let mut hooks = self.hook_auth.get().unwrap();
583-
match hooks.get_mut(&tc) {
584-
None => {
585-
hooks.insert(tc, vec![HookPerm::Dismiss]);
586-
}
587-
Some(tc_perms) => {
588-
if !tc_perms.contains(&HookPerm::Dismiss) {
589-
tc_perms.push(HookPerm::Dismiss);
590-
}
591-
}
592-
}
593-
self.hook_auth.set(&hooks);
594-
}
595575
}
596576

597577
#[cfg(all(test, not(target_arch = "wasm32")))]

0 commit comments

Comments
 (0)