Skip to content

Commit

Permalink
Use pointer to agent
Browse files Browse the repository at this point in the history
  • Loading branch information
intUnderflow committed Feb 3, 2022
1 parent e4c21c2 commit 41cab3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hashing/hashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

// GetHashForSMSMessage returns the hash for a given SMS message sent by a given agent to a user with a given public key
func GetHashForSMSMessage(publicKeyString string, agent verified_sms.Agent, smsMessage []byte) ([]byte, error) {
func GetHashForSMSMessage(publicKeyString string, agent *verified_sms.Agent, smsMessage []byte) ([]byte, error) {
publicKey, err := getPublicKeyFromPublicKeyPayload(publicKeyString)
if err != nil {
return nil, terrors.Propagate(err)
Expand Down
2 changes: 1 addition & 1 deletion verified-sms.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type Agent struct {
// device just doesn't support Verified SMS
// An error will be returned if we couldn't mark the SMS as Verified and we aren't sure whether the user is on
// Verified SMS
func (partner Partner) MarkSMSAsVerified(ctx context.Context, phoneNumber string, agent Agent, smsMessage string) (bool, error) {
func (partner Partner) MarkSMSAsVerified(ctx context.Context, phoneNumber string, agent *Agent, smsMessage string) (bool, error) {
publicKeys, err := partner.GetPhoneNumberPublicKeys(ctx, phoneNumber)
if err != nil {
return false, terrors.Propagate(err)
Expand Down

0 comments on commit 41cab3a

Please sign in to comment.