feat: add no-build option for fee::Args - #1267
Conversation
2c5050f to
dc2e10d
Compare
3b9ad3b to
398a018
Compare
There was a problem hiding this comment.
That was fast! This is great 👏🏻.
Couple questions inline.
The --sim-only might be unnecessary, given that folks could do soroban contract deploy --build-only | soroban tx simulate in the future, and that leans on command composability and keeps the options simpler. Thoughts from others on this? cc @fnando @chadoh
398a018 to
5f7a6e7
Compare
f7008fd to
3f87119
Compare
3b5a34c to
f53e8b1
Compare
|
Will take another look once #1173 is merged, but this looked good when I last reviewed other than the couple minor things which are addressed so I think we'll be able to fast merge this once the other is on its way. |
f53e8b1 to
816e470
Compare
71ecb56 to
4d20c27
Compare
leighmcculloch
left a comment
There was a problem hiding this comment.
Few questions inline. Looks like this isn't far off.
83157b3 to
9d7bee9
Compare
--sim-only for assembling transactions
9d7bee9 to
58daf6c
Compare
…runnable commands actually build a tx
…ing the apply_to_assembled_txn less ambiguous
leighmcculloch
left a comment
There was a problem hiding this comment.
I pushed a couple changes to the PR in the last 3 commits, and I left comments inline to outline why. Please take a look and let me know if you agree with them.
|
@willemneal If you're good with the changes I pushed, can you resolve the unresolved conversations which are just the notes I left explaining why each change, and once they're all resolved that should trigger GitHub to auto-merge the PR. If possible don't force push the branch in case we need to make more changes. |
|
I pushed a bug fix in 457a54b for how sim only works with install. I left a comment in the code about it for more information. |
Fixes #1265.
Requires: #1173
Commands that build transactions now include the following args to output and exit early:
--build-onlyprints the base64 xdr before simulation--sim-onlyprints the base64 xdr after simulationFor example,
prints:
AAAAAMwWyQMtAWO6nW4s+cKMRunx+kiaKfjJwIRNZEEclDvRAAAAZAAIgAEAAAANAAAAAAAAAAAAAAABAAAAAAAAABgAAAAAAAAAAQ3DO777M8sdGtPbMau+cuxAles4UILfUkZXOWTsqKvOAAAABWhlbGxvAAAAAAAAAQAAAA8AAAAFd29ybGQAAAAAAAAAAAAAAA==AAAAAMwWyQMtAWO6nW4s%2BcKMRunx%2BkiaKfjJwIRNZEEclDvRAAD4WAAIgAEAAAANAAAAAAAAAAAAAAABAAAAAAAAABgAAAAAAAAAAQ3DO777M8sdGtPbMau%2BcuxAles4UILfUkZXOWTsqKvOAAAABWhlbGxvAAAAAAAAAQAAAA8AAAAFd29ybGQAAAAAAAAAAAAAAQAAAAAAAAACAAAABgAAAAENwzu%2B%2BzPLHRrT2zGrvnLsQJXrOFCC31JGVzlk7KirzgAAABQAAAABAAAAB3mMSQSdZWZNBqeYQchZLRMLUhSFaxsEJAOkX%2Bel%2B%2BMzAAAAAABcQYMAABsoAAAAAAAAAAAAANeQTransaction result
The NetworkRunable trait a result type of
TxnResult, either a raw xdr string or a T. This allows returning early.update
is-viewEnsure that
is-viewdoesn't fetch account info as a source account doesn't need to exist for a simulation.