Skip to content

v1.2.1

Latest

Choose a tag to compare

@JaydenLink JaydenLink released this 08 Apr 02:29
0786d86

What's Changed

Bug Fixes

gRPC SimulateTransaction now works without pre-funded gas payment

Previously, calling SimulateTransaction via gRPC would fail with one of:

  • unexpected end of input — caused by nil GasData.Price or GasData.Payment producing malformed BCS bytes
  • transaction not found — caused by the read mask including committed-only fields (digest, signatures, checkpoint, timestamp) that the node cannot populate for simulated
    transactions

New Features

  • SimulateTransactionOptions.DoGasSelection — set to true to let the node automatically select a gas coin, no need to provide a gas payment object
  • Transaction.BuildBCSBytes(ctx) — new public method that returns raw BCS-encoded TransactionData bytes, suitable for passing directly to SimulateTransactionOptions.Transaction or
    ExecuteTransactionOptions.Transaction

Examples

  • Added SimulateTransaction example in v2_examples/ demonstrating the correct end-to-end flow
  • Completed ExecuteTransaction example in grpc_examples/transaction_execution_service/ with full PTB build, sign, and submit