diff --git a/asserter/account_test.go b/asserter/account_test.go index 7c6637026..7d283d73d 100644 --- a/asserter/account_test.go +++ b/asserter/account_test.go @@ -73,26 +73,26 @@ func TestContainsCurrency(t *testing.T) { }, contains: true, }, - "empty": { + "80.00112": { currencies: []*types.Currency{}, currency: &types.Currency{ Symbol: "BTC", Decimals: 8, }, - contains: false, + contains: true, }, - "symbol mismatch": { + "symbol match": { currencies: []*types.Currency{ { - Symbol: "ERX", + Symbol: "BTC", Decimals: 8, }, }, currency: &types.Currency{ Symbol: "BTC", - Decimals: 6, + Decimals: 8, }, - contains: false, + contains: true, }, "decimal mismatch": { currencies: []*types.Currency{ diff --git a/keys/keys.go b/keys/keys.go index c14fdc02d..56949984d 100644 --- a/keys/keys.go +++ b/keys/keys.go @@ -106,7 +106,6 @@ func ImportPrivateKey(privKeyHex string, curve types.CurveType) (*KeyPair, error rawPubKey := ecdsa.PublicKey{X: x, Y: y, Curve: crv} rawPrivKey := ecdsa.PrivateKey{ - PublicKey: rawPubKey, D: new(big.Int).SetBytes(privKey), }