Oops, need to remove version from more payloads
This commit is contained in:
parent
23bd804f97
commit
3391f653ac
2 changed files with 0 additions and 6 deletions
|
@ -138,7 +138,6 @@ func TestIntegrationWalletUpdates(t *testing.T) {
|
||||||
PathWallet,
|
PathWallet,
|
||||||
&walletResponse,
|
&walletResponse,
|
||||||
fmt.Sprintf(`{
|
fmt.Sprintf(`{
|
||||||
"version": 1,
|
|
||||||
"token": "%s",
|
"token": "%s",
|
||||||
"encryptedWallet": "my-encrypted-wallet-1",
|
"encryptedWallet": "my-encrypted-wallet-1",
|
||||||
"sequence": 1,
|
"sequence": 1,
|
||||||
|
@ -149,7 +148,6 @@ func TestIntegrationWalletUpdates(t *testing.T) {
|
||||||
checkStatusCode(t, statusCode, responseBody)
|
checkStatusCode(t, statusCode, responseBody)
|
||||||
|
|
||||||
expectedResponse := WalletResponse{
|
expectedResponse := WalletResponse{
|
||||||
Version: 1,
|
|
||||||
EncryptedWallet: wallet.EncryptedWallet("my-encrypted-wallet-1"),
|
EncryptedWallet: wallet.EncryptedWallet("my-encrypted-wallet-1"),
|
||||||
Sequence: wallet.Sequence(1),
|
Sequence: wallet.Sequence(1),
|
||||||
Hmac: wallet.WalletHmac("my-hmac-1"),
|
Hmac: wallet.WalletHmac("my-hmac-1"),
|
||||||
|
@ -190,7 +188,6 @@ func TestIntegrationWalletUpdates(t *testing.T) {
|
||||||
PathWallet,
|
PathWallet,
|
||||||
&walletResponse,
|
&walletResponse,
|
||||||
fmt.Sprintf(`{
|
fmt.Sprintf(`{
|
||||||
"version": 1,
|
|
||||||
"token": "%s",
|
"token": "%s",
|
||||||
"encryptedWallet": "my-encrypted-wallet-2",
|
"encryptedWallet": "my-encrypted-wallet-2",
|
||||||
"sequence": 2,
|
"sequence": 2,
|
||||||
|
@ -201,7 +198,6 @@ func TestIntegrationWalletUpdates(t *testing.T) {
|
||||||
checkStatusCode(t, statusCode, responseBody)
|
checkStatusCode(t, statusCode, responseBody)
|
||||||
|
|
||||||
expectedResponse = WalletResponse{
|
expectedResponse = WalletResponse{
|
||||||
Version: 1,
|
|
||||||
EncryptedWallet: wallet.EncryptedWallet("my-encrypted-wallet-2"),
|
EncryptedWallet: wallet.EncryptedWallet("my-encrypted-wallet-2"),
|
||||||
Sequence: wallet.Sequence(2),
|
Sequence: wallet.Sequence(2),
|
||||||
Hmac: wallet.WalletHmac("my-hmac-2"),
|
Hmac: wallet.WalletHmac("my-hmac-2"),
|
||||||
|
|
|
@ -10,7 +10,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type WalletRequest struct {
|
type WalletRequest struct {
|
||||||
Version int `json:"version"`
|
|
||||||
Token auth.TokenString `json:"token"`
|
Token auth.TokenString `json:"token"`
|
||||||
EncryptedWallet wallet.EncryptedWallet `json:"encryptedWallet"`
|
EncryptedWallet wallet.EncryptedWallet `json:"encryptedWallet"`
|
||||||
Sequence wallet.Sequence `json:"sequence"`
|
Sequence wallet.Sequence `json:"sequence"`
|
||||||
|
@ -25,7 +24,6 @@ func (r *WalletRequest) validate() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
type WalletResponse struct {
|
type WalletResponse struct {
|
||||||
Version int `json:"version"`
|
|
||||||
EncryptedWallet wallet.EncryptedWallet `json:"encryptedWallet"`
|
EncryptedWallet wallet.EncryptedWallet `json:"encryptedWallet"`
|
||||||
Sequence wallet.Sequence `json:"sequence"`
|
Sequence wallet.Sequence `json:"sequence"`
|
||||||
Hmac wallet.WalletHmac `json:"hmac"`
|
Hmac wallet.WalletHmac `json:"hmac"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue