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

Adding private sendTx function #2257

Merged
merged 18 commits into from
Sep 23, 2022

Conversation

chatton
Copy link
Contributor

@chatton chatton commented Sep 9, 2022

Description

closes: #2239
closes: #2241


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2022

Codecov Report

Merging #2257 (f0717e3) into main (b97729d) will increase coverage by 0.04%.
The diff coverage is 80.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2257      +/-   ##
==========================================
+ Coverage   79.54%   79.58%   +0.04%     
==========================================
  Files         175      175              
  Lines       12069    12125      +56     
==========================================
+ Hits         9600     9650      +50     
- Misses       2045     2049       +4     
- Partials      424      426       +2     
Impacted Files Coverage Δ
...7-interchain-accounts/controller/ibc_middleware.go 70.96% <42.85%> (-9.56%) ⬇️
...27-interchain-accounts/controller/keeper/keeper.go 91.04% <75.00%> (-1.70%) ⬇️
...nterchain-accounts/controller/keeper/migrations.go 81.25% <75.00%> (+1.25%) ⬆️
...7-interchain-accounts/controller/keeper/account.go 85.00% <100.00%> (ø)
...7-interchain-accounts/controller/keeper/genesis.go 91.30% <100.00%> (ø)
...nterchain-accounts/controller/keeper/msg_server.go 100.00% <100.00%> (ø)
.../27-interchain-accounts/controller/keeper/relay.go 74.46% <100.00%> (+1.13%) ⬆️
...apps/27-interchain-accounts/host/keeper/account.go 100.00% <100.00%> (+23.07%) ⬆️
...ps/27-interchain-accounts/host/keeper/handshake.go 92.18% <100.00%> (+7.57%) ⬆️
modules/apps/27-interchain-accounts/module.go 54.00% <100.00%> (+1.42%) ⬆️
... and 7 more

@chatton chatton marked this pull request as ready for review September 13, 2022 08:26
Comment on lines 65 to 66
absoluteTimeout := uint64(ctx.BlockTime().UnixNano()) + msg.TimeoutTimestamp
seq, err := s.sendTx(ctx, chanCap, msg.ConnectionId, portID, msg.PacketData, absoluteTimeout)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not 100% clear if there is more required than this change with the private function.

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@charleenfei charleenfei left a comment

Choose a reason for hiding this comment

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

lgtm!

@chatton chatton enabled auto-merge (squash) September 23, 2022 11:25
@chatton chatton merged commit 4297a9e into main Sep 23, 2022
@chatton chatton deleted the cian/issue#2239-make-a-private-function-for-sendtx branch September 23, 2022 11:31
mergify bot pushed a commit that referenced this pull request Sep 23, 2022
colin-axner added a commit that referenced this pull request Sep 26, 2022
(cherry picked from commit 4297a9e)

Co-authored-by: Cian Hatton <[email protected]>
Co-authored-by: colin axnér <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
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.

MsgSendTx should calculate absolute timestamp using relative timestamp Make a private function for sendTx
4 participants