ui-cleanup-update #104

Merged
Alfred-mk merged 5 commits from ui-cleanup-update into master 2025-10-03 17:31:40 +02:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 0e5454ae5d - Show all commits

BIN
services/registration/vise-asm Executable file

Binary file not shown.

View File

@ -61,13 +61,14 @@ func TestProcessVouchers(t *testing.T) {
holdings := []dataserviceapi.TokenHoldings{ holdings := []dataserviceapi.TokenHoldings{
{TokenAddress: "0xd4c288865Ce", TokenSymbol: "SRF", TokenDecimals: "6", Balance: "100000000"}, {TokenAddress: "0xd4c288865Ce", TokenSymbol: "SRF", TokenDecimals: "6", Balance: "100000000"},
{TokenAddress: "0x41c188d63Qa", TokenSymbol: "MILO", TokenDecimals: "4", Balance: "200000000"}, {TokenAddress: "0x41c188d63Qa", TokenSymbol: "MILO", TokenDecimals: "4", Balance: "200000000"},
{TokenAddress: "0x41c143d63Qa", TokenSymbol: "USD₮", TokenDecimals: "6", Balance: "300000000"},
} }
expectedResult := VoucherMetadata{ expectedResult := VoucherMetadata{
Symbols: "1:SRF\n2:MILO", Symbols: "1:SRF\n2:MILO\n3:USDT",
Balances: "1:100\n2:20000", Balances: "1:100\n2:20000\n3:300",
Decimals: "1:6\n2:4", Decimals: "1:6\n2:4\n3:6",
Addresses: "1:0xd4c288865Ce\n2:0x41c188d63Qa", Addresses: "1:0xd4c288865Ce\n2:0x41c188d63Qa\n3:0x41c143d63Qa",
} }
result := ProcessVouchers(holdings) result := ProcessVouchers(holdings)