Oops, need to remove version from more payloads

This commit is contained in:
Daniel Krol 2022-06-17 12:49:22 -04:00
parent 23bd804f97
commit 3391f653ac
2 changed files with 0 additions and 6 deletions

View file

@ -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"),

View file

@ -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"`