Skip to content

Commit

Permalink
change executeTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
soaryong-c committed Jan 25, 2023
1 parent 561f0fc commit fd06291
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,13 @@ class SuiClient {
): Any? {
val params = mutableListOf(
Base64.getEncoder().encodeToString(txBytes),
"ED25519",
Base64.getEncoder().encodeToString(signedBytes),
Base64.getEncoder().encodeToString(keyPair.publicKey.abyte),
Base64.getEncoder()
.encodeToString(byteArrayOf(0x00) + signedBytes + keyPair.publicKey.abyte),
"WaitForLocalExecution"
)

return ApiService.create()
.postJsonRpcRequest(JsonRpcRequest("sui_executeTransaction", params)).body()?.result
.postJsonRpcRequest(JsonRpcRequest("sui_executeTransactionSerializedSig", params))
.body()?.result
}
}

0 comments on commit fd06291

Please sign in to comment.