分发钱包修改beginschedule,将sceduleId的计算改为线下

This commit is contained in:
CounterFire2023 2023-07-27 13:22:41 +08:00
parent a7cd708678
commit dc971a4d5c
2 changed files with 6506 additions and 6243 deletions

File diff suppressed because one or more lines are too long

View File

@ -214,6 +214,16 @@ contract BEMultiSigWallet is AccessControlEnumerable {
emit ScheduleAdded(id); emit ScheduleAdded(id);
} }
/**
* @dev Schedule an operation containing a single transaction.
* Emits one {ScheduleAdded} event.
* Requirements:
* - the caller must have the 'proposer' role.
*/
function simpleSchedule(bytes32 id, uint256 delay) external onlyRoleOrOpenRole(PROPOSER_ROLE) {
_schedule(id, delay);
emit ScheduleAdded(id);
}
/** /**
* @dev Schedule an operation that is to becomes valid after a given delay. * @dev Schedule an operation that is to becomes valid after a given delay.
*/ */