Skip to content

Commit

Permalink
Virtual methods in Account
Browse files Browse the repository at this point in the history
  • Loading branch information
RostislavLitovkin committed Jan 28, 2024
1 parent 27c7811 commit 813a48b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Substrate.NetApi/Model/Types/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,13 @@ public static Account Build(KeyType keyType, byte[] privateKey, byte[] publicKey
return account;
}


/// <summary>
/// Asynchronously signs the specified message.
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
/// <exception cref="NotSupportedException"></exception>
public async Task<byte[]> SignRawAsync(byte[] message)
public virtual async Task<byte[]> SignRawAsync(byte[] message)
{
switch (KeyType)
{
Expand All @@ -168,7 +167,7 @@ public async Task<byte[]> SignRawAsync(byte[] message)
/// <param name="payload"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
public async Task<byte[]> SignPayloadAsync(Payload payload)
public virtual async Task<byte[]> SignPayloadAsync(Payload payload)
{
return await SignRawAsync(payload.Encode());
}
Expand Down

0 comments on commit 813a48b

Please sign in to comment.