Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Add receiver interface for mailbox (CW abstraction) #89

Merged
merged 5 commits into from
Dec 13, 2023

Conversation

misko9
Copy link
Contributor

@misko9 misko9 commented Nov 3, 2023

No description provided.

@misko9 misko9 requested a review from KyleMoser November 3, 2023 23:52
@@ -19,6 +21,7 @@ pub fn instantiate(
_msg: InstantiateMsg,
) -> Result<Response, ContractError> {
OWNER.save(deps.storage, &info.sender)?;
ISM.save(deps.storage, &0)?;

Ok(Response::new()
.add_event(Event::new("hyperlane_init").add_attribute("attr", "value"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: remove attr/value attribute

customIsmReq := types.QueryCustomIsmRequest{
IsmId: uint32(i+1),
IsmId: uint32(i + 1),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand this test case. The first ID is reserved for 0, the default, so it's +1?

}
}

func (k *Keeper) AddReceiver(receiver *receiver.Receiver) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: remove * from function param

Copy link
Contributor

@KyleMoser KyleMoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far (moving other comment to 88)

Base automatically changed from steve/abstractions to main November 8, 2023 22:39
@misko9 misko9 marked this pull request as ready for review December 13, 2023 18:36
@misko9 misko9 merged commit eab7081 into main Dec 13, 2023
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants