From 837f83d5399792ea6397c210bcd51b58c0e51790 Mon Sep 17 00:00:00 2001 From: Yin Guanhao Date: Tue, 1 Aug 2023 20:00:09 +0800 Subject: [PATCH 1/2] chore: fix README transaction builder example --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 97cb4d422..7d72330f0 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,10 @@ Here is an example to build a CKB transfer transaction with the help of transact String sender = "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq2qf8keemy2p5uu0g0gn8cd4ju23s5269qk8rg4r"; String receiver = "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqg958atl2zdh8jn3ch8lc72nt0cf864ecqdxm9zf"; Iterator iterator = new InputIterator(sender); -TransactionWithScriptGroups txWithGroups = new CkbTransactionBuilder(iterator, Network.TESTNET) +TransactionBuilderConfiguration configuration = new TransactionBuilderConfiguration(Network.TESTNET); +configuration.setFeeRate(1000); +TransactionWithScriptGroups txWithGroups = new CkbTransactionBuilder(configuration, iterator) .addOutput(receiver, 50100000000L) - .setFeeRate(1000) .setChangeOutput(sender) .build(); ``` From c590c086f05ea20d075bab7718c166e392bd736c Mon Sep 17 00:00:00 2001 From: Yin Guanhao Date: Thu, 20 Jul 2023 18:21:00 +0800 Subject: [PATCH 2/2] Fix guava dep for ckb --- ckb/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/ckb/build.gradle b/ckb/build.gradle index 41f4c5720..1ebbe0f31 100644 --- a/ckb/build.gradle +++ b/ckb/build.gradle @@ -8,6 +8,7 @@ dependencies { implementation project(":serialization") implementation "com.google.code.gson:gson:$gsonVersion" + implementation "com.google.guava:guava:$guavaVersion" } apply plugin: 'com.github.johnrengelman.shadow'