Skip to content

Commit 316e61a

Browse files
authored
Merge pull request #324 from 0xsequence/remove-anonymous-constructors
2 parents 76599ac + 522c07e commit 316e61a

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

Packages/Sequence-Unity/Sequence/SequenceSDK/Ethereum/Contract/Contract.cs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
using System.Collections;
2-
using System.Collections.Generic;
31
using System.Threading.Tasks;
42
using System;
53
using System.Numerics;
64
using Sequence.ABI;
75
using Sequence.Provider;
8-
using Sequence.Transactions;
9-
using System.Text;
10-
using System.Text.RegularExpressions;
116
using Sequence.Utils;
12-
using Sequence.Wallet;
13-
using UnityEngine;
147

158
namespace Sequence.Contracts
169
{
1710
public class Contract
1811
{
12+
private struct QueryParameters
13+
{
14+
public Address to;
15+
public string data;
16+
}
17+
1918
Address address;
2019
public delegate Task<T> QueryContractMessageSender<T>(IEthClient client);
2120

@@ -156,12 +155,11 @@ private QueryContractMessageSender<string> QueryContract(string functionName, pa
156155
private object[] CreateParams(string functionName, params object[] args)
157156
{
158157
string data = GetData(functionName, args);
159-
string to = address;
160158
object[] toSendParams = new object[] {
161-
new
159+
new QueryParameters
162160
{
163-
to,
164-
data
161+
to = address,
162+
data = data
165163
}
166164
};
167165
return toSendParams;

Packages/Sequence-Unity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xyz.0xsequence.waas-unity",
3-
"version": "4.4.1",
3+
"version": "4.4.2",
44
"displayName": "Sequence Embedded Wallet SDK",
55
"description": "A Unity SDK for Sequence APIs",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)