-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chainlink-elastic-proposal): erc712 proposal array encoding
- Loading branch information
Showing
3 changed files
with
166 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
test/harness/PWNSimpleLoanElasticChainlinkProposalHarness.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// SPDX-License-Identifier: GPL-3.0-only | ||
pragma solidity 0.8.16; | ||
|
||
import { | ||
PWNSimpleLoanElasticChainlinkProposal | ||
} from "pwn/loan/terms/simple/proposal/PWNSimpleLoanElasticChainlinkProposal.sol"; | ||
|
||
|
||
contract PWNSimpleLoanElasticChainlinkProposalHarness is PWNSimpleLoanElasticChainlinkProposal { | ||
|
||
constructor( | ||
address _hub, | ||
address _revokedNonce, | ||
address _config, | ||
address _utilizedCredit, | ||
address _chainlinkFeedRegistry, | ||
address _l2SequencerUptimeFeed, | ||
address _weth | ||
) PWNSimpleLoanElasticChainlinkProposal( | ||
_hub, | ||
_revokedNonce, | ||
_config, | ||
_utilizedCredit, | ||
_chainlinkFeedRegistry, | ||
_l2SequencerUptimeFeed, | ||
_weth | ||
) {} | ||
|
||
|
||
function exposed_erc712EncodeProposal(Proposal memory proposal) external pure returns (bytes memory) { | ||
return _erc712EncodeProposal(proposal); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters