Skip to content

Commit d4a2976

Browse files
committed
graphql-server: Update eip4361 abnf spelling for LikeCoin
refs oursky#328
1 parent e9a4a0a commit d4a2976

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

graphql-server/pkg/abnf/eip4361.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919

2020
// https://eips.ethereum.org/EIPS/eip-4361
2121

22-
// domain %s" wants you to sign in with your Likecoin account:" LF
22+
// domain %s" wants you to sign in with your LikeCoin account:" LF
2323
// address LF
2424
// LF
2525
// [ statement LF ]
@@ -36,7 +36,7 @@ const (
3636
// resources ]
3737
func AuthenticationMessage() abnf.Rule {
3838
return abnf.C(
39-
abnf.K(Authority(), AuthorityFQDN), abnf.SP(), abnf.VS("wants you to sign in with your Likecoin account:"), abnf.LF(),
39+
abnf.K(Authority(), AuthorityFQDN), abnf.SP(), abnf.VS("wants you to sign in with your LikeCoin account:"), abnf.LF(),
4040
abnf.K(_address(), AddressFQDN), abnf.LF(),
4141
abnf.LF(),
4242
abnf.O(abnf.C(abnf.K(_statement(), StatementFQDN), abnf.LF())),

graphql-server/pkg/abnf/eip4361_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ func Test_EIP4361Message(t *testing.T) {
1313
authority := "likedao.com"
1414
address := "like1cq425wdjy0lg6zswt38j06kepq782mxzsuveua"
1515
uri := "https://likedao.com"
16-
chainID := "likecoin-mainnet-2"
16+
chainID := "LikeCoin-mainnet-2"
1717
nonce := "12345678"
1818
issuedAt := "2006-01-02T15:04:05Z"
1919

2020
message := fmt.Sprintf(
21-
"%s wants you to sign in with your Likecoin account:\n"+
21+
"%s wants you to sign in with your LikeCoin account:\n"+
2222
"%s\n"+
2323
"\n\n\n"+
2424
"URI: %s\n"+
@@ -64,7 +64,7 @@ func Test_EIP4361Message(t *testing.T) {
6464
})
6565

6666
t.Run("Official EIP Sample Message", func(t *testing.T) {
67-
message := "service.org wants you to sign in with your Likecoin account:\n" +
67+
message := "service.org wants you to sign in with your LikeCoin account:\n" +
6868
"like1cq425wdjy0lg6zswt38j06kepq782mxzsuveua\n" +
6969
"\n" +
7070
"I accept the ServiceOrg Terms of Service: https://service.org/tos\n" +
@@ -93,7 +93,7 @@ func Test_EIP4361Message(t *testing.T) {
9393
issuedAt := "2020-01-02T15:04:05Z"
9494

9595
message := fmt.Sprintf(
96-
"%s wants you to sign in with your Likecoin account:\n"+
96+
"%s wants you to sign in with your LikeCoin account:\n"+
9797
"%s\n"+
9898
"\n\n\n"+
9999
"URI: %s\n"+
@@ -117,7 +117,7 @@ func Test_EIP4361Message(t *testing.T) {
117117
issuedAt := "2020-01-02T15:04:05Z"
118118

119119
message := fmt.Sprintf(
120-
"%s wants you to sign in with your Likecoin account:\n"+
120+
"%s wants you to sign in with your LikeCoin account:\n"+
121121
"%s\n"+
122122
"\n\n\n"+
123123
"URI: %s\n"+
@@ -141,7 +141,7 @@ func Test_EIP4361Message(t *testing.T) {
141141
issuedAt := "2020-01-02T15:04:05Z"
142142

143143
message := fmt.Sprintf(
144-
"%s wants you to sign in with your Likecoin account:\n"+
144+
"%s wants you to sign in with your LikeCoin account:\n"+
145145
"%s\n"+
146146
"\n\n\n"+
147147
"URI: %s\n"+
@@ -165,7 +165,7 @@ func Test_EIP4361Message(t *testing.T) {
165165
issuedAt := "2020-01-02T15:04:05Z"
166166

167167
message := fmt.Sprintf(
168-
"%s wants you to sign in with your Likecoin account:\n"+
168+
"%s wants you to sign in with your LikeCoin account:\n"+
169169
"%s\n"+
170170
"\n\n\n"+
171171
"URI: %s\n"+
@@ -189,7 +189,7 @@ func Test_EIP4361Message(t *testing.T) {
189189
issuedAt := "2020-01-02T15:04:05Z"
190190

191191
message := fmt.Sprintf(
192-
"%s wants you to sign in with your Likecoin account:\n"+
192+
"%s wants you to sign in with your LikeCoin account:\n"+
193193
"%s\n"+
194194
"\n\n\n"+
195195
"URI: %s\n"+
@@ -213,7 +213,7 @@ func Test_EIP4361Message(t *testing.T) {
213213
issuedAt := "20200-01-02T15:04:05Z"
214214

215215
message := fmt.Sprintf(
216-
"%s wants you to sign in with your Likecoin account:\n"+
216+
"%s wants you to sign in with your LikeCoin account:\n"+
217217
"%s\n"+
218218
"\n\n\n"+
219219
"URI: %s\n"+
@@ -237,7 +237,7 @@ func Test_EIP4361Message(t *testing.T) {
237237
issuedAt := "2020-01-02T15:04:05Z"
238238

239239
message := fmt.Sprintf(
240-
"%s wants you to sign in with your Likecoin account:\n"+
240+
"%s wants you to sign in with your LikeCoin account:\n"+
241241
"%s\n"+
242242
"\n\n\n"+
243243
"URI: %s\n"+

0 commit comments

Comments
 (0)