Skip to content
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

Remove IBC token denomination and refactoring #2062

Merged
merged 9 commits into from
Nov 11, 2023
Merged

Conversation

yito88
Copy link
Member

@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 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
Contributor

@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!

core/src/ledger/ibc/context/common.rs Outdated Show resolved Hide resolved
) -> 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
Member

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
Member

@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
13 of 14 checks passed
@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
5 participants