From bc95c932b9b87a88bfaef04e7a196f7d1de5b27f Mon Sep 17 00:00:00 2001 From: shwoop Date: Wed, 2 Jul 2025 16:56:22 +0200 Subject: [PATCH] quick self review --- rpc/server.go | 16 ++++++++-------- signer/core/testdata/siwe/error_spoofing.json | 2 +- signer/core/testdata/siwe/valid_messages.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/rpc/server.go b/rpc/server.go index 097289eb58..fd45b39c94 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -263,16 +263,16 @@ func ContextWithMockPeerInfo(ctx context.Context, transport, source string) cont peerInfo := PeerInfo{ Transport: transport, HTTP: struct { - Version string - UserAgent string - Origin string - Host string + Version string + UserAgent string + Origin string + Host string }{ - Version: "1.1", - UserAgent: "test", - Origin: source, + Version: "1.1", + UserAgent: "test", + Origin: source, Host: "test", }, } return context.WithValue(ctx, peerInfoContextKey{}, peerInfo) -} \ No newline at end of file +} diff --git a/signer/core/testdata/siwe/error_spoofing.json b/signer/core/testdata/siwe/error_spoofing.json index 4756013b6a..308703a6a2 100644 --- a/signer/core/testdata/siwe/error_spoofing.json +++ b/signer/core/testdata/siwe/error_spoofing.json @@ -21,4 +21,4 @@ "account": "0x1234567890123456789012345678901234567890" } } -} \ No newline at end of file +} diff --git a/signer/core/testdata/siwe/valid_messages.json b/signer/core/testdata/siwe/valid_messages.json index 2eaff26de9..7a27c4f26f 100644 --- a/signer/core/testdata/siwe/valid_messages.json +++ b/signer/core/testdata/siwe/valid_messages.json @@ -33,4 +33,4 @@ "Statement present": "service.org wants you to sign in with your Ethereum account:\n0x{{Account}}\n\nhave statement\n\nURI: uri:\nVersion: 1\nChain ID: 1\nNonce: 32891757\nIssued At: 2021-09-30T16:25:24.000Z", "Statement empty": "service.org wants you to sign in with your Ethereum account:\n0x{{Account}}\n\n\n\nURI: uri:\nVersion: 1\nChain ID: 1\nNonce: 32891757\nIssued At: 2021-09-30T16:25:24.000Z", "Statement missing": "service.org wants you to sign in with your Ethereum account:\n0x{{Account}}\n\n\nURI: uri:\nVersion: 1\nChain ID: 1\nNonce: 32891757\nIssued At: 2021-09-30T16:25:24.000Z" -} \ No newline at end of file +}