Skip to content

Commit 9480a90

Browse files
authored
Problem: Missing wait_for_transaction_receipt (fix #448) (#449)
* Problem: Missing wait_for_transaction_receipt (fix #448) * Bump defi-wallet-core-rs * Update Cargo.lock * Bump defi-wallet-core-rs * Use wait_fro_transaction_receipt_blocking * Use get_block_number * Bump defi-wallet-core-rs to 0.3.6 * Format * Add 0.0.20-alpha release
1 parent 95abb9a commit 9480a90

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22
## [Unreleased]
3+
## [v0.0.20-alpha] - 2023-5-16
4+
- Use defi-wallet-core-rs v0.3.6
5+
- Add get_eth_transaction_receipt_blocking
6+
- Add wait_for_transaction_receipt_blocking
7+
- get_block_number_blocking
8+
- Update walletconnect 2.0 support
9+
- Add session file
10+
- Add session updates/events
11+
- Use rustls-tls-webpki-roots
12+
313
## [v0.0.19-alpha] - 2023-4-24
414
- Upgrade ethers to 2.0
515
- Add msys2 build support

Cargo.lock

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/examples/src/wallet_connect.cc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,11 @@ int main(int argc, char *argv[]) {
147147

148148
// send transaction
149149
if (test_basic) {
150-
std::cout << "Get transaction_receipt..." << std::endl;
150+
rust::String block_number =
151+
get_block_number_blocking("https://evm-t3.cronos.org");
152+
std::cout << "block number=" << block_number.c_str() << std::endl;
151153

154+
std::cout << "Get transaction_receipt..." << std::endl;
152155
rust::String tx_receipt = get_eth_transaction_receipt_blocking(
153156
"d6dcb26d14f27ce8ae9b394fdecf02d48f5f6f7aea9a159fc0a8114c"
154157
"26efe2ef",
@@ -175,9 +178,17 @@ int main(int argc, char *argv[]) {
175178

176179
tx_receipt = get_eth_transaction_receipt_blocking(
177180
tx_hash, "https://evm-t3.cronos.org");
181+
std::cout << "transaction_receipt=" << tx_receipt.c_str()
182+
<< std::endl;
178183

184+
tx_receipt = wait_for_transaction_receipt_blocking(
185+
tx_hash, "https://evm-t3.cronos.org");
179186
std::cout << "transaction_receipt=" << tx_receipt.c_str()
180187
<< std::endl;
188+
189+
block_number =
190+
get_block_number_blocking("https://evm-t3.cronos.org");
191+
std::cout << "block number=" << block_number.c_str() << std::endl;
181192
}
182193

183194
// send contract transaction

play-cpp-sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "play-cpp-sdk"
3-
version = "0.0.19-alpha"
3+
version = "0.0.20-alpha"
44
edition = "2021"
55
license = "Apache-2.0"
66

0 commit comments

Comments
 (0)