[#417] Extract sender updater from Nettest operations
Description
Here we add withSender
as a primary method for specifying sender for origination and transfer operations, and respectively we remove *From
versions of some methods.
Note: Actually, I'd like to go further and do the same for amount
, my motivation:
- All the same methods as above (origination and transfer) accept mutez amount to be transferred to target.
- In most cases we don't actually care and want to pass 0.
- We already pretty suffer from the exponential number of methods (w/ and w/o
from
, w/ and w/oamount
,transfer
vscall
and so on). In particular, specifying amount with the dedicatedwithAmount
will eliminate the need inoriginateSimple
method, andcall
will become more configurable (AFAIR someone faced such need recently).
Related issue(s)
Resolves #417 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Konstantin Ivanov