mirror of
https://github.com/status-im/status-go.git
synced 2025-01-31 00:48:01 +00:00
b9d083c6d5
* feat(wallet)_: add split onramp url endpoint & fix onrmap url
37 lines
645 B
Go
37 lines
645 B
Go
package mercuryo
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestUnmarshallCurrencies(t *testing.T) {
|
|
requiredAssetIDs := []CryptoCurrency{
|
|
{
|
|
Network: "ETHEREUM",
|
|
Symbol: "ETH",
|
|
Contract: "",
|
|
},
|
|
{
|
|
Network: "OPTIMISM",
|
|
Symbol: "ETH",
|
|
Contract: "",
|
|
},
|
|
{
|
|
Network: "ARBITRUM",
|
|
Symbol: "ETH",
|
|
Contract: "",
|
|
},
|
|
{
|
|
Network: "ETHEREUM",
|
|
Symbol: "DAI",
|
|
Contract: "0x6b175474e89094c44da98b954eedeac495271d0f",
|
|
},
|
|
}
|
|
|
|
currencies, err := handleCurrenciesResponse(getTestCurrenciesOKResponse())
|
|
assert.NoError(t, err)
|
|
assert.Subset(t, currencies, requiredAssetIDs)
|
|
}
|