Open armaniferrante opened 3 years ago
Ill take this one on!
Ill take this one on!
You got it!
@armaniferrante is it only for this examples/spl/token-proxy/tests/token-proxy.js
file? I'm seeing that the @project-serum/serum package and @project-serum/common package is being used in multiple other files. For example tests/cfo/deps/serum-dex/dex/tests/permissioned/tests/permissioned-markets.js
and tests/swap/deps/serum-dex/dex/tests/permissioned/tests/utils/market-maker.js
Let's remove all instances of @project-seurm/common
. For @project-serum/serum
, we should only remove it if it's using non idiomatic APIs, for example, getting the token program id or something of that nature.
Let's remove all instances of
@project-seurm/common
. For@project-serum/serum
, we should only remove it if it's using non idiomatic APIs, for example, getting the token program id or something of that nature.
Ok so should I be changing the tests that use @project-serum/common
and use @solana/spl-token
instead or should I be getting rid of those tests entirely?
Ok so should I be changing the tests that use
@project-serum/common
and use@solana/spl-token
instead or should I be getting rid of those tests entirely?
Let's keep the tests but change the import to use @solana/spl-token
.
The fix here https://github.com/project-serum/anchor/commit/6576e0d7ff321801c8b5819ffd1bbda76e1e0148 exposed the fact that some of the project-serum packages are using old versions of web3.js that are incompatible with the latest version that anchor uses. These packages, e.g.,
@project-serum/serum
and@project-serum/common
should be removed from the examples and replaced with packages like@solana/spl-token
, since they're only used for utility methods.