Skip to content

Commit

Permalink
refactor(governance): handle floating promises
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jun 13, 2022
1 parent 0d42d27 commit 7991e29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/governance/src/closingRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Far } from '@endo/marshal';
/** @type {CloseVoting} */
export const scheduleClose = (closingRule, closeVoting) => {
const { timer, deadline } = closingRule;
E(timer).setWakeup(
return E(timer).setWakeup(
deadline,
Far('close voting', {
wake: closeVoting,
Expand Down
2 changes: 1 addition & 1 deletion packages/governance/src/contractGovernance/paramManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const makeParamManagerBuilder = zoe => {
*
* @param {SetInvitationParam} param0
*/
const setInvitation = async ([newInvitation, amount]) => {
const setInvitation = ([newInvitation, amount]) => {
currentAmount = amount;
currentInvitation = newInvitation;
return harden({ [name]: currentAmount });
Expand Down

0 comments on commit 7991e29

Please sign in to comment.