diff --git a/android/src/main/kotlin/africa/ejara/trustdart/coins/NEAR.kt b/android/src/main/kotlin/africa/ejara/trustdart/coins/NEAR.kt index 70153d0..01eba1a 100644 --- a/android/src/main/kotlin/africa/ejara/trustdart/coins/NEAR.kt +++ b/android/src/main/kotlin/africa/ejara/trustdart/coins/NEAR.kt @@ -38,9 +38,9 @@ class NEAR : Coin("NEAR", CoinType.NEAR) { signerId = txData["signerID"] as String nonce = txData["nonce"]!!.toLong() receiverId = txData["receiverID"] as String - addActionsBuilder().apply { + addActions(NEAR.Action.newBuilder().apply { transfer = transferAction - } + }) blockHash = ByteString.copyFrom(Base58.decodeNoCheck(txData["blockHash"] as String)) privateKey = ByteString.copyFrom(secretKey.data()) }.build() diff --git a/example/lib/operations.dart b/example/lib/operations.dart index 5d17e5a..b27fd15 100644 --- a/example/lib/operations.dart +++ b/example/lib/operations.dart @@ -66,7 +66,6 @@ Map operations = { // "senderAddress": "tz1ioz62kDw6Gm5HApeQtc1PGmN2wPBtJKUP", // "toAddress": "tz1ioz62kDw6Gm5HApeQtc1PGmN2wPBtJKUP", // "value": "123", - // "amount": "0", // "source": "tz1ioz62kDw6Gm5HApeQtc1PGmN2wPBtJKUP", // "fee": 100000, // "counter": 2993173,