Skip to content

Conversation

@yito88
Copy link
Collaborator

@yito88 yito88 commented Oct 26, 2023

Describe your changes

closes #1947 and closes #1445 by refactoring for IBC,

Indicate on which release or other PRs this topic is based on

v0.25.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@yito88 yito88 requested review from batconjurer and sug0 October 26, 2023 19:44
@yito88 yito88 changed the title Yuji/refactor ibc Remove IBC token denomination and refactoring Oct 26, 2023
sug0
sug0 previously approved these changes Oct 27, 2023
Copy link
Collaborator

@sug0 sug0 left a comment

Choose a reason for hiding this comment

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

lgtm, managed to shave off quite a bit of lines!

) -> Result<()> {
let key = storage::receipt_key(port_id, channel_id, sequence);
// the value is the same as ibc-go
let bytes = [1_u8].to_vec();
Copy link
Collaborator

Choose a reason for hiding this comment

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

that's a shame we have to allocated a vec for a single byte

batconjurer
batconjurer previously approved these changes Oct 27, 2023
Copy link
Collaborator

@batconjurer batconjurer left a comment

Choose a reason for hiding this comment

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

Generally looks good.

@yito88 yito88 dismissed stale reviews from batconjurer and sug0 via ec0391f October 28, 2023 10:37
@yito88 yito88 mentioned this pull request Nov 5, 2023
23 tasks
@brentstone brentstone mentioned this pull request Nov 7, 2023
This was referenced Nov 7, 2023
yito88 added a commit that referenced this pull request Nov 8, 2023
@adrianbrink adrianbrink merged commit 963311b into main Nov 11, 2023
@adrianbrink adrianbrink deleted the yuji/refactor-ibc branch November 11, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IBC token denomination doesn't have to be stored IBC: refactor for typed storage

6 participants