Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into Feature/WaaSIntegra…
Browse files Browse the repository at this point in the history
…tion_newApi
  • Loading branch information
BellringerQuinn committed Dec 20, 2023
2 parents 1b0577e + b8a15ce commit 4146249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Assets/SequenceSDK/Core/Signature/Digest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static Digest NewDigest(params string[] messages)
return (new ImageHash()
{
Hash = new Hash(hashBytes),
}, null);;
}, null);
}

// Subdigest derives the hash to be signed by the Sequence wallet's signers to validate the digest.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ public class SignMessageArgs
public string network { get; private set; }
public string wallet { get; private set; }

public SignMessageArgs(string wallet, Chain network, string message, uint timeBeforeExpiry = 30)
public SignMessageArgs(string walletAddress, Chain network, string message, uint timeBeforeExpiry = 30)
{
int networkId = (int)network;
this.wallet = wallet;
this.wallet = walletAddress;
this.network = networkId.ToString();
this.message = message;
this.issued = (uint)DateTimeOffset.UtcNow.ToUnixTimeSeconds();
this.expires = this.issued + timeBeforeExpiry;
}

public SignMessageArgs(string wallet, string networkId, string message, uint timeBeforeExpiry = 30)
public SignMessageArgs(string walletAddress, string networkId, string message, uint timeBeforeExpiry = 30)
{
this.wallet = wallet;
this.wallet = walletAddress;
this.network = networkId;
this.message = message;
this.issued = (uint)DateTimeOffset.UtcNow.ToUnixTimeSeconds();
Expand Down

0 comments on commit 4146249

Please sign in to comment.