ainblockchain / ain-blockchain

Official Javascript implementation of AI Network Blockchain.
https://www.ainetwork.ai/
MIT License
67 stars 27 forks source link

Add dryrun transaction API #1189

Closed platfowner closed 1 year ago

platfowner commented 1 year ago

Change summary:

Related issues:

platfowner commented 1 year ago

Dryrun json rpc method name was changed to ain_sendSignedTransactionDryrun.

PTAL~ @shyun-comcom

shyun-comcom commented 1 year ago

Function createAndExecuteTransaction calls executeAndBroadcastTransaction. Is there no need to set the isDryrun flag here?

platfowner commented 1 year ago

Function createAndExecuteTransaction calls executeAndBroadcastTransaction. Is there no need to set the isDryrun flag here?

createAndExecuteTransaction is for creating transactions for Dev Client SET APIs. Here are some context:

platfowner commented 1 year ago

Thanks for the review! Now merging.. @shyun-comcom