diff --git a/lib/mento-std b/lib/mento-std index 07ad2f4c..015de76e 160000 --- a/lib/mento-std +++ b/lib/mento-std @@ -1 +1 @@ -Subproject commit 07ad2f4c27fc20702d7dab20d7c0c2bef7c8da49 +Subproject commit 015de76e2fe19534ebc939b005a52aa4c59ef97e diff --git a/script/upgrades/TemplateCelo/TemplateCelo.sol b/script/upgrades/TemplateCelo/TemplateCelo.sol index b243198f..3e2dedb8 100644 --- a/script/upgrades/TemplateCelo/TemplateCelo.sol +++ b/script/upgrades/TemplateCelo/TemplateCelo.sol @@ -17,6 +17,6 @@ contract TemplateCelo is CeloGovernanceScript { function buildProposal() internal override { // TODO: Add transactions to proposal. - add({ value: 0, destination: lookup("Governance"), data: abi.encode() }); + add({ destination: lookup("Governance"), data: bytes("") }); } } diff --git a/script/upgrades/TemplateMento/TemplateMento.sol b/script/upgrades/TemplateMento/TemplateMento.sol index 214ba8bb..8b62a41d 100644 --- a/script/upgrades/TemplateMento/TemplateMento.sol +++ b/script/upgrades/TemplateMento/TemplateMento.sol @@ -20,6 +20,6 @@ contract TemplateMento is MentoGovernanceScript { function buildProposal() internal override { // TODO: Add transactions to proposal. - add({ value: 0, destination: lookup("Governance"), data: abi.encode() }); + add({ destination: lookup("Governance"), data: bytes("") }); } } diff --git a/script/utils/v2/GovernanceScript.sol b/script/utils/v2/GovernanceScript.sol index a47f5fe6..09733fc2 100644 --- a/script/utils/v2/GovernanceScript.sol +++ b/script/utils/v2/GovernanceScript.sol @@ -17,6 +17,14 @@ abstract contract GovernanceScript is Script { transactions.push(Transaction(value, destination, data)); } + function add(address destination, bytes memory data) internal { + add(0, destination, data); + } + + function add(uint256 value, address destination) internal { + add(value, destination, bytes("")); + } + function run() public virtual { setUp(); buildProposal();