You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ROOT (which is B) performs successive CALL's to contracts
A with value 1
B with value 2 (selfcall)
A with value 3
C with value 4
B with value 5 (selfcall)
A with value 6
finish with a REVERT (optionally)
The next level of testing would have A be callable either with a simple transfer function or with a tipTheSender function where A performs a CALL to its caller address and gives back half the money it got i.e. half of the CALLVALUE.
Also the ROOT should have the option to use a sendAll method where it sends its entire balance. The target should be allowed to be any of the above.
Furthermore we want the choice between using normal CALL's and CALLCODE's.
Also, run the same test not from ROOT but from one level above ROOT twice in a row (in the same transaction, covering all 4 possibilities of reverting, e.g., first reverting and second not).
The text was updated successfully, but these errors were encountered:
Write a simple test like so
ROOT
(which isB
) performs successiveCALL
's to contractsA
with value 1B
with value 2 (selfcall)A
with value 3C
with value 4B
with value 5 (selfcall)A
with value 6REVERT
(optionally)The next level of testing would have
A
be callable either with a simple transfer function or with atipTheSender
function whereA
performs aCALL
to its caller address and gives back half the money it got i.e. half of theCALLVALUE
.Also the
ROOT
should have the option to use asendAll
method where it sends its entire balance. The target should be allowed to be any of the above.Furthermore we want the choice between using normal
CALL
's andCALLCODE
's.Also, run the same test not from
ROOT
but from one level aboveROOT
twice in a row (in the same transaction, covering all 4 possibilities of reverting, e.g., first reverting and second not).The text was updated successfully, but these errors were encountered: