Skip to content

Commit

Permalink
fix: 🐛 fix compile error in test script unity 2021.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonboukheir committed Sep 6, 2023
1 parent 849f1b3 commit 462e612
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ IEnumerator Start()

string message;
using (var requestJson = AlgoApiSerializer.SerializeJson(request, Allocator.Temp))
using (var encryptedEnvelope = Envelope.EncryptType0(requestJson.AsArray(), key, nonce, Allocator.Temp))
using (var encryptedEnvelope = Envelope.EncryptType0(requestJson.AsArray().AsReadOnlySpan(), key, nonce, Allocator.Temp))
{
message = Convert.ToBase64String(encryptedEnvelope.ToArray());
}
Expand Down

0 comments on commit 462e612

Please sign in to comment.