Skip to content

Commit 787d71d

Browse files
committed
Merge pull request bnb-chain#2056 from fjl/fix-account-format
crypto: "Crypto" -> "crypto" in web3 key format
2 parents b2ffb76 + 032453b commit 787d71d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎crypto/key.go‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ type plainKeyJSON struct {
5050
}
5151

5252
type encryptedKeyJSONV3 struct {
53-
Address string `json:"address"`
54-
Crypto cryptoJSON
55-
Id string `json:"id"`
56-
Version int `json:"version"`
53+
Address string `json:"address"`
54+
Crypto cryptoJSON `json:"crypto"`
55+
Id string `json:"id"`
56+
Version int `json:"version"`
5757
}
5858

5959
type encryptedKeyJSONV1 struct {
60-
Address string `json:"address"`
61-
Crypto cryptoJSON
62-
Id string `json:"id"`
63-
Version string `json:"version"`
60+
Address string `json:"address"`
61+
Crypto cryptoJSON `json:"crypto"`
62+
Id string `json:"id"`
63+
Version string `json:"version"`
6464
}
6565

6666
type cryptoJSON struct {

0 commit comments

Comments
 (0)