20 lines
558 B
Go
20 lines
558 B
Go
package accountapiimp
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
eapi "github.com/tech/sendico/server/interface/api"
|
|
)
|
|
|
|
func TestBuildGatewayAsset_PreservesContractAddressCase(t *testing.T) {
|
|
asset, err := buildGatewayAsset(eapi.ChainGatewayAssetConfig{
|
|
Chain: "TRON_MAINNET",
|
|
TokenSymbol: "usdt",
|
|
ContractAddress: "TR7NhQjeKQxGTCi8q8ZY4pL8otSzgjLj6T",
|
|
})
|
|
require.NoError(t, err)
|
|
require.Equal(t, "USDT", asset.GetTokenSymbol())
|
|
require.Equal(t, "TR7NhQjeKQxGTCi8q8ZY4pL8otSzgjLj6T", asset.GetContractAddress())
|
|
}
|