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

Nguyen/ibc hooks #197

Merged
merged 84 commits into from
Sep 8, 2023
Merged

Nguyen/ibc hooks #197

merged 84 commits into from
Sep 8, 2023

Conversation

expertdicer
Copy link
Contributor

@expertdicer expertdicer commented Jun 28, 2023

Description and Motivation

This PR continues the progress of #150

Related Issues

#138
#150


Checklist:

  • I have read Migaloo's contribution guidelines.
  • My pull request has a sound title and description (not something vague like Update index.md)
  • All existing and new tests are passing.
  • I updated/added relevant documentation.
  • The code is formatted properly golangci-lint run ./... --fix.

anhductn2001 and others added 30 commits May 20, 2023 16:09
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…modules/github.com/stretchr/testify-1.8.4

build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](spf13/viper@v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…modules/github.com/spf13/viper-1.16.0

build(deps): bump github.com/spf13/viper from 1.15.0 to 1.16.0
Invalid memory address or nil pointer dereference when collect-gentxs
@vuong177
Copy link
Contributor

@anhductn2001 I think we should add IBC hook test to e2e testing.

@anhductn2001
Copy link
Contributor

Ok @vuong177, I will

if err != nil {
// If the ack is not a json object, error
return err
}

sudoMsg := []byte(fmt.Sprintf(
`{"ibc_lifecycle_complete": {"ibc_ack": {"channel": "%s", "sequence": %d, "ack": %s, "success": %s}}}`,
packet.SourceChannel, packet.Sequence, ackAsJson, success))
packet.SourceChannel, packet.Sequence, ackAsJSON, success))

Check failure

Code scanning / CodeQL

Potentially unsafe quoting

If this [JSON value](1) contains a double quote, it could break out of the enclosing quotes.
@expertdicer expertdicer requested a review from GNaD13 August 29, 2023 09:55
@faddat
Copy link
Collaborator

faddat commented Sep 8, 2023

I think that this PR is good to go, for the v47 version of Migaloo.

@faddat faddat merged commit 4e2b7af into ibc-hooks Sep 8, 2023
@hoank101 hoank101 deleted the nguyen/ibc-hooks branch March 22, 2024 01:57
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.

7 participants