We need to give a deprecate message for those primitives in Test
which are already available in Test.Next
.
This MR adds the tag [@deprecated]
to functions that will be deprecated in future versions:
File "../../test/contracts/increment_prefix.jsligo", line 24, characters 13-27:
23 | let initial_storage = 42;
24 | let orig = Test.originate(contract_of(IncDec), initial_storage, 0tez);
^^^^^^^^^^^^^^
25 | Test.transfer_exn(orig.addr, Increment(), 1mutez);
:
Warning: deprecated value.
In a future version, `Test` will be replaced by `Test.Next`, and using `Originate.contract` from `Test.Next` is encouraged for a smoother migration.
File "../../test/contracts/increment_prefix.jsligo", line 25, characters 2-19:
24 | let orig = Test.originate(contract_of(IncDec), initial_storage, 0tez);
25 | Test.transfer_exn(orig.addr, Increment(), 1mutez);
^^^^^^^^^^^^^^^^^
26 | return assert(Test.get_storage(orig.addr) == initial_storage + 1);
:
Warning: deprecated value.
In a future version, `Test` will be replaced by `Test.Next`, and using `Typed_address.transfer_exn` from `Test.Next` is encouraged for a smoother migration.
File "../../test/contracts/increment_prefix.jsligo", line 26, characters 16-32:
25 | Test.transfer_exn(orig.addr, Increment(), 1mutez);
26 | return assert(Test.get_storage(orig.addr) == initial_storage + 1);
^^^^^^^^^^^^^^^^
27 | }) ();
:
Warning: deprecated value.
In a future version, `Test` will be replaced by `Test.Next`, and using `Typed_address.get_storage` from `Test.Next` is encouraged for a smoother migration.
dune @fmt
to check).## Changelog
section with #### (if appropriate).