diff --git a/server/integration_test.go b/server/integration_test.go index e29854e..5332804 100644 --- a/server/integration_test.go +++ b/server/integration_test.go @@ -138,7 +138,6 @@ func TestIntegrationWalletUpdates(t *testing.T) { PathWallet, &walletResponse, fmt.Sprintf(`{ - "version": 1, "token": "%s", "encryptedWallet": "my-encrypted-wallet-1", "sequence": 1, @@ -149,7 +148,6 @@ func TestIntegrationWalletUpdates(t *testing.T) { checkStatusCode(t, statusCode, responseBody) expectedResponse := WalletResponse{ - Version: 1, EncryptedWallet: wallet.EncryptedWallet("my-encrypted-wallet-1"), Sequence: wallet.Sequence(1), Hmac: wallet.WalletHmac("my-hmac-1"), @@ -190,7 +188,6 @@ func TestIntegrationWalletUpdates(t *testing.T) { PathWallet, &walletResponse, fmt.Sprintf(`{ - "version": 1, "token": "%s", "encryptedWallet": "my-encrypted-wallet-2", "sequence": 2, @@ -201,7 +198,6 @@ func TestIntegrationWalletUpdates(t *testing.T) { checkStatusCode(t, statusCode, responseBody) expectedResponse = WalletResponse{ - Version: 1, EncryptedWallet: wallet.EncryptedWallet("my-encrypted-wallet-2"), Sequence: wallet.Sequence(2), Hmac: wallet.WalletHmac("my-hmac-2"), diff --git a/server/wallet.go b/server/wallet.go index 4bbeb25..3c4d281 100644 --- a/server/wallet.go +++ b/server/wallet.go @@ -10,7 +10,6 @@ import ( ) type WalletRequest struct { - Version int `json:"version"` Token auth.TokenString `json:"token"` EncryptedWallet wallet.EncryptedWallet `json:"encryptedWallet"` Sequence wallet.Sequence `json:"sequence"` @@ -25,7 +24,6 @@ func (r *WalletRequest) validate() bool { } type WalletResponse struct { - Version int `json:"version"` EncryptedWallet wallet.EncryptedWallet `json:"encryptedWallet"` Sequence wallet.Sequence `json:"sequence"` Hmac wallet.WalletHmac `json:"hmac"`