Skip to content

Commit 90a8fa9

Browse files
committed
user: return hard coded friendship cost
1 parent aa0ef97 commit 90a8fa9

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ require (
131131
gopkg.in/yaml.v3 v3.0.1 // indirect
132132
)
133133

134-
replace github.com/code-payments/code-protobuf-api => github.com/mfycheng/code-protobuf-api v0.0.0-20240903225511-d2a2c70fed01
134+
replace github.com/code-payments/code-protobuf-api => github.com/mfycheng/code-protobuf-api v0.0.0-20240911181529-aa1f1374eb26

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky
421421
github.com/mattn/go-sqlite3 v1.14.6 h1:dNPt6NO46WmLVt2DLNpwczCmdV5boIZ6g/tlDrlRUbg=
422422
github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
423423
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
424-
github.com/mfycheng/code-protobuf-api v0.0.0-20240903225511-d2a2c70fed01 h1:ad/2HkUxU4OElEH6zwBAOdrkyTkGdr/r2HzdljGC0I8=
425-
github.com/mfycheng/code-protobuf-api v0.0.0-20240903225511-d2a2c70fed01/go.mod h1:pHQm75vydD6Cm2qHAzlimW6drysm489Z4tVxC2zHSsU=
424+
github.com/mfycheng/code-protobuf-api v0.0.0-20240911181529-aa1f1374eb26 h1:/Ugbn1xUuuSS6qQ3Grh83zdiYzzPsCnC+24j9nqkYtU=
425+
github.com/mfycheng/code-protobuf-api v0.0.0-20240911181529-aa1f1374eb26/go.mod h1:pHQm75vydD6Cm2qHAzlimW6drysm489Z4tVxC2zHSsU=
426426
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
427427
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
428428
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=

pkg/code/server/grpc/user/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ func (s *identityServer) GetTwitterUser(ctx context.Context, req *userpb.GetTwit
710710
ProfilePicUrl: record.ProfilePicUrl,
711711
VerifiedType: record.VerifiedType,
712712
FollowerCount: record.FollowerCount,
713+
FriendshipCost: &transactionpb.ExchangeDataWithoutRate{
714+
Currency: "USD",
715+
NativeAmount: 1.0,
716+
},
713717
},
714718
}, nil
715719
case twitter.ErrUserNotFound:

0 commit comments

Comments
 (0)