From ee814addd8e9802ef1d56887d1c32cc8bd737c93 Mon Sep 17 00:00:00 2001 From: PK89Hush Date: Thu, 23 Jan 2025 01:34:04 +0000 Subject: [PATCH 1/2] commit --- asserter/account_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/asserter/account_test.go b/asserter/account_test.go index 7c663702..7d283d73 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{ From b85652b8c5251bf0e27c116dbbf22a9cbd0e0903 Mon Sep 17 00:00:00 2001 From: PK89Hush Date: Thu, 23 Jan 2025 01:42:07 +0000 Subject: [PATCH 2/2] commit --- keys/keys.go | 1 - 1 file changed, 1 deletion(-) diff --git a/keys/keys.go b/keys/keys.go index c14fdc02..56949984 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), }