Skip to content

Commit

Permalink
feat: correct addresses for harvesters
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Dec 3, 2024
1 parent 02d4eae commit 1fec868
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract TransmuterWhitelistHarvesters is Utils {
address to = address(transmuter);
uint8 isDelegateCall = 0;
{
bytes memory data = abi.encodeWithSelector(ISettersGovernor.toggleTrusted.selector, 0x0A10f87F55d89eb2a89c264ebE46C90785a10B77, TrustedType.Seller);
bytes memory data = abi.encodeWithSelector(ISettersGovernor.toggleTrusted.selector, 0x16CA2999e5f5e43aEc2e6c18896655b9B05a1560, TrustedType.Seller);
uint256 dataLength = data.length;
bytes memory internalTx = abi.encodePacked(isDelegateCall, to, uint256(0), dataLength, data);
transactions = abi.encodePacked(transactions, internalTx);
Expand All @@ -38,7 +38,7 @@ contract TransmuterWhitelistHarvesters is Utils {
transactions = abi.encodePacked(transactions, internalTx);
}
{
bytes memory data = abi.encodeWithSelector(ISettersGovernor.toggleTrusted.selector, 0x5BEdD878CBfaF4dc53EC272A291A6a4C2259369D, TrustedType.Seller);
bytes memory data = abi.encodeWithSelector(ISettersGovernor.toggleTrusted.selector, 0xf156D2F6726E3231dd94dD9CB2e86D9A85A38d18, TrustedType.Seller);
uint256 dataLength = data.length;
bytes memory internalTx = abi.encodePacked(isDelegateCall, to, uint256(0), dataLength, data);
transactions = abi.encodePacked(transactions, internalTx);
Expand Down
4 changes: 2 additions & 2 deletions test/transmuter/TransmuterWhitelistHarvesters.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ contract TransmuterWhitelistHarvestersTest is BaseTest {

{
transmuter = ITransmuter(_chainToContract(chainId, ContractType.TransmuterAgEUR));
assertEq(IGetters(address(transmuter)).isTrustedSeller(address(0x0A10f87F55d89eb2a89c264ebE46C90785a10B77)), true);
assertEq(IGetters(address(transmuter)).isTrustedSeller(address(0x16CA2999e5f5e43aEc2e6c18896655b9B05a1560)), true);
}
{
transmuter = ITransmuter(_chainToContract(chainId, ContractType.TransmuterAgUSD));
assertEq(IGetters(address(transmuter)).isTrustedSeller(address(0x54b96Fee8208Ea7aCe3d415e5c14798112909794)), true);
assertEq(IGetters(address(transmuter)).isTrustedSeller(address(0x5BEdD878CBfaF4dc53EC272A291A6a4C2259369D)), true);
assertEq(IGetters(address(transmuter)).isTrustedSeller(address(0xf156D2F6726E3231dd94dD9CB2e86D9A85A38d18)), true);
}
}
}

0 comments on commit 1fec868

Please sign in to comment.