Skip to content

Commit

Permalink
Merge branch 'main' into support-namada
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Nov 12, 2024
2 parents a1b11a2 + dca99ed commit 4a2e62e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/ciTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ This example is broken down in the steps below.

Artifacts allow you to share data between jobs in a workflow. You can read more about them [here](https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts)

We recommend to use the [Heighliner Action](https://github.com/strangelove-ventures/heighliner-build-action) (strangelove-ventures/heighliner-build-action@vx.x.x). This action streamlines setting up Go, checking out the repo, and building the image with the proper tags. Like the local build step above, this removes the need for a local Dockerfile.
We recommend to use the [Heighliner Action](https://github.com/strangelove-ventures/heighliner-build-action) (strangelove-ventures/heighliner-build-action). This action streamlines setting up Go, checking out the repo, and building the image with the proper tags. Like the local build step above, this removes the need for a local Dockerfile.

Note the `tar-export-path`. This is the artifact that will be uploaded and used by the other GitHub runners.

Expand Down
10 changes: 8 additions & 2 deletions local-interchain/rust/localic-std/src/modules/cosmwasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub fn get_contract_address(rb: &ChainRequestBuilder, tx_hash: &str) -> Result<S
}

fn get_contract(rb: &ChainRequestBuilder, tx_hash: &str) -> Result<String, LocalError> {
let res = rb.query_tx_hash(tx_hash);
let mut res = rb.query_tx_hash(tx_hash);

let code = res["code"].as_i64().unwrap_or_default();
if code != 0 {
Expand All @@ -298,7 +298,13 @@ fn get_contract(rb: &ChainRequestBuilder, tx_hash: &str) -> Result<String, Local
});
}

for event in res["logs"][0]["events"].as_array().iter() {
let mut tx_logs = res["logs"].take();
let events = tx_logs
.as_array_mut()
.and_then(|logs| logs.first_mut())
.map_or_else(|| res["events"].take(), |log| log["events"].take());

for event in events.as_array().into_iter() {
for attr in event.iter() {
for attr_values in attr["attributes"].as_array().iter() {
for attr in attr_values.iter() {
Expand Down

0 comments on commit 4a2e62e

Please sign in to comment.