Skip to content

Commit e5d2e6b

Browse files
authored
[tesseract]: instrument evm tx logs (#704)
1 parent 0883575 commit e5d2e6b

File tree

12 files changed

+366
-569
lines changed

12 files changed

+366
-569
lines changed

.github/workflows/polyhedron-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
sudo apt-get install -y clang netcat wget curl libssl-dev llvm libclang-dev libudev-dev make protobuf-compiler pkg-config libsnappy-dev librocksdb-dev rocksdb-tools
4545
echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
4646
47-
- uses: pnpm/action-setup@v2
47+
- uses: pnpm/action-setup@v4
4848
with:
49-
version: 8
49+
version: 10
5050

5151
- name: Set up Node
5252
uses: actions/setup-node@v3

.github/workflows/tesseract-consensus-docker-publish-feature.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
with:
2929
toolchain: stable
3030

31-
- uses: pnpm/action-setup@v2
31+
- uses: pnpm/action-setup@v4
3232
with:
33-
version: 8
33+
version: 10
3434

3535
- name: Set up Node
3636
uses: actions/setup-node@v3

.github/workflows/tesseract-consensus-docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
with:
2929
toolchain: stable
3030

31-
- uses: pnpm/action-setup@v2
31+
- uses: pnpm/action-setup@v4
3232
with:
33-
version: 8
33+
version: 10
3434

3535
- name: Set up Node
3636
uses: actions/setup-node@v3

.github/workflows/tesseract-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
with:
3232
toolchain: stable
3333

34-
- uses: pnpm/action-setup@v2
34+
- uses: pnpm/action-setup@v4
3535
with:
36-
version: 8
36+
version: 10
3737

3838
- name: Set up Node
3939
uses: actions/setup-node@v3

.github/workflows/test-core.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ jobs:
4141
with:
4242
node-version: "18"
4343

44-
- name: Install pnpm
45-
uses: pnpm/action-setup@v2
44+
- uses: pnpm/action-setup@v4
4645
with:
47-
version: 8
46+
version: 10
4847
run_install: false
4948

5049
- name: Get pnpm store directory

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tesseract/consensus/relayer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tesseract-consensus"
3-
version = "1.6.1"
3+
version = "1.6.3"
44
edition = "2021"
55

66
[lib]

tesseract/messaging/evm/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ impl EvmClient {
375375
let gas = call.estimate_gas().await?;
376376
let pending = call.gas(gas).send().await?;
377377
let tx_hash = *pending.tx_hash();
378-
wait_for_transaction_receipt(H256::from_slice(tx_hash.as_slice()), self.client.clone())
379-
.await?;
378+
wait_for_transaction_receipt(H256::from_slice(tx_hash.as_slice()), self).await?;
380379

381380
Ok(())
382381
}
@@ -394,8 +393,7 @@ impl EvmClient {
394393
let gas = call.estimate_gas().await?;
395394
let pending = call.gas(gas).send().await?;
396395
let tx_hash = *pending.tx_hash();
397-
wait_for_transaction_receipt(H256::from_slice(tx_hash.as_slice()), self.client.clone())
398-
.await?;
396+
wait_for_transaction_receipt(H256::from_slice(tx_hash.as_slice()), self).await?;
399397

400398
Ok(())
401399
}

tesseract/messaging/evm/src/provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ impl IsmpProvider for EvmClient {
401401
},
402402
};
403403

404-
let (tx_requests, _) = generate_contract_calls(self, msg.clone(), true).await?;
404+
let (tx_requests, _) = generate_contract_calls(self, &msg, true).await?;
405405

406406
// Setup debug trace call options with the call tracer
407407
let call_config = CallConfig { only_top_call: Some(false), with_log: Some(true) };

0 commit comments

Comments
 (0)