Assets: Fix LinearContracts support (#1724)

* Assets: Fix LinearContracts support

* Assets: Fix False positives with IsValid

supportedFlag&a is true for every even number, making the test pretty
close to meaningless.

[This
fix](5b33bc5324)
was a viable fix maintaining bit shifted iota, but there's no benefit to
it at all.

Simplifying.
This commit is contained in:
Gareth Kirwan
2024-11-25 05:35:25 +01:00
committed by GitHub
parent 4bbaf75d34
commit fa9549d142
3 changed files with 68 additions and 144 deletions

View File

@@ -55,7 +55,7 @@ func TestSubmit_Validate(t *testing.T) {
Submit: &Submit{
Exchange: "test",
Pair: testPair,
AssetType: 255,
AssetType: asset.All,
},
}, // valid pair but invalid asset
{