Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Assets/SequenceSDK/Ethereum/Tests/ABIRegexTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public void TestMatchesFunctionName(string input, bool expected)
[TestCase("functionName(a,)", false)]
[TestCase("functionName() ", false)]
[TestCase("function_-123Name()", true)]
[TestCase("function_-123Name(int[])", true)]
[TestCase("functionName(a[],a)", true)]
[TestCase("functionName(a[5],a)", true)]
[TestCase("functionName(a[][],a)", true)]
public void TestMatchesFunctionABI(string input, bool expected)
{
bool result = ABIRegex.MatchesFunctionABI(input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public static class ABIRegex
{

public const string FunctionNameRegex = @"^[A-Z|a-z|_,-|0-9]+$";
public const string FunctionABIRegex = @"^[A-Z|a-z|_,-|0-9]+\(([A-Z|a-z|0-9]+(, *[A-Z|a-z|0-9]+)*)?\)$";
public const string FunctionABIRegex = @"^[A-Z|a-z|_,-|0-9]+\(([A-Za-z0-9\[\]]+(, *[A-Za-z0-9\[\]]+)*)?\)$";

public static bool MatchesFunctionName(string input)
{
Expand Down
2 changes: 1 addition & 1 deletion Packages/Sequence-Unity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xyz.0xsequence.waas-unity",
"version": "3.17.0",
"version": "3.17.1",
"displayName": "Sequence Embedded Wallet SDK",
"description": "A Unity SDK for the Sequence WaaS API",
"unity": "2021.3",
Expand Down
Loading