-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamped contract for escrow #12
Conversation
# Conflicts: # src/EchoCrossChain.sol # src/EchoState.sol
Started working on redeeming expired offers
Coverage after merging feature/escrow into main will be
Coverage Report
|
Coverage after merging feature/escrow into main will be
Coverage Report
|
function _consumeMessage(bytes32 hash) internal { | ||
_state.consumedMessages[hash] = true; | ||
} |
Check warning
Code scanning / Slither
Dead-code Warning
function _verifyEmitter(IWormhole.VM memory vm) internal view returns (bool) { | ||
return _state.registeredEmitters[vm.emitterChainId] == vm.emitterAddress; | ||
} |
Check warning
Code scanning / Slither
Dead-code Warning
Coverage after merging feature/escrow into main will be
Coverage Report
|
Coverage after merging feature/escrow into main will be
Coverage Report
|
Coverage after merging feature/escrow into main will be
Coverage Report
|
src/Echo.sol
Outdated
event OfferExecuted(bytes32 indexed offerId); | ||
// @dev For future use... | ||
|
||
uint16 private immutable CHAIN_ID; |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
Publishing on blast now works Added a few more scripts Fixed the chain id bug
assertOfferItemsEq(offer1.receiverItems, offer2.receiverItems); | ||
assertEq(uint256(offer1.state), uint256(offer2.state)); | ||
assertEq(offer1.expiration, offer2.expiration); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
following my comments on the first PR, I'd add an "assertOfferState` function
Added blast specific data on contract
Coverage after merging feature/escrow into main will be
Coverage Report
|
function claimGas() external onlyOwner { | ||
BLAST.claimMaxGas(address(this), msg.sender); | ||
} |
Check warning
Code scanning / Slither
Unused return Medium
No description provided.