diff --git a/src/gmc_con.erl b/src/gmc_con.erl index 1b74c10..e457d87 100644 --- a/src/gmc_con.erl +++ b/src/gmc_con.erl @@ -688,7 +688,9 @@ do_spend2(PrivKey, {nonce, int}, {payload, binary}], BinaryTX = aeser_chain_objects:serialize(Type, Vsn, Template, Fields), + tell("BinaryTX: ~p", [BinaryTX]), NetworkTX = <>, + tell("NetworkTX: ~p", [NetworkTX]), Signature = ecu_eddsa:sign_detached(NetworkTX, PrivKey), SigTxType = signed_tx, SigTxVsn = 1, @@ -697,10 +699,11 @@ do_spend2(PrivKey, {transaction, binary}], TX_Data = [{signatures, [Signature]}, - {transaction, NetworkTX}], + {transaction, BinaryTX}], SignedTX = aeser_chain_objects:serialize(SigTxType, SigTxVsn, SigTemplate, TX_Data), + tell("SignedTX: ~p", [SignedTX]), Encoded = aeser_api_encoder:encode(transaction, SignedTX), - tell("SpendTX: ~p", [Encoded]), + tell("Encoded: ~p", [Encoded]), Outcome = hz:post_tx(Encoded), tell("Outcome: ~p", [Outcome]).