File tree Expand file tree Collapse file tree 3 files changed +26
-9
lines changed
Thirdweb.Tests/Thirdweb.Transactions Expand file tree Collapse file tree 3 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 55
55
56
56
#endregion
57
57
58
- #region AA ZkSync (Abstract)
58
+ // #region AA ZkSync
59
59
60
- // var smartWalletAbstract = await SmartWallet.Create(personalWallet: privateKeyWallet, chainId: 11124 , gasless: true);
60
+ // var zkSmartWallet = await SmartWallet.Create(personalWallet: privateKeyWallet, chainId: 4654 , gasless: true);
61
61
62
- // var receipt = await smartWalletAbstract.ExecuteTransaction (
63
- // new ThirdwebTransactionInput(11124 )
62
+ // var hash = await zkSmartWallet.SendTransaction (
63
+ // new ThirdwebTransactionInput(4654 )
64
64
// {
65
- // To = await smartWalletAbstract .GetAddress(),
65
+ // To = await zkSmartWallet .GetAddress(),
66
66
// Value = new HexBigInteger(BigInteger.Zero),
67
- // Data = "0x"
67
+ // Data = "0x",
68
68
// }
69
69
// );
70
70
71
- // Console.WriteLine($"Transaction hash: {receipt }");
71
+ // Console.WriteLine($"Transaction hash: {hash }");
72
72
73
- #endregion
73
+ // #endregion
74
74
75
75
#region Ecosystem Wallet
76
76
Original file line number Diff line number Diff line change @@ -119,6 +119,23 @@ public async Task SendGaslessZkTx_Abstract_Success()
119
119
Assert . True ( hash . Length == 66 ) ;
120
120
}
121
121
122
+ [ Fact ( Timeout = 120000 ) ]
123
+ public async Task SendGaslessZkTx_Creator_Success ( )
124
+ {
125
+ var account = await this . GetSmartAccount ( zkChainId : 4654 ) ;
126
+ var hash = await account . SendTransaction (
127
+ new ThirdwebTransactionInput ( 4654 )
128
+ {
129
+ From = await account . GetAddress ( ) ,
130
+ To = await account . GetAddress ( ) ,
131
+ Value = new Nethereum . Hex . HexTypes . HexBigInteger ( 0 ) ,
132
+ Data = "0x"
133
+ }
134
+ ) ;
135
+ Assert . NotNull ( hash ) ;
136
+ Assert . True ( hash . Length == 66 ) ;
137
+ }
138
+
122
139
[ Fact ( Timeout = 120000 ) ]
123
140
public async Task ZkSync_Switch ( )
124
141
{
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ public static string GenerateSIWE(LoginPayloadData loginPayloadData)
293
293
/// <returns>True if it is a zkSync chain ID, otherwise false.</returns>
294
294
public static bool IsZkSync ( BigInteger chainId )
295
295
{
296
- return chainId . Equals ( 324 ) || chainId . Equals ( 300 ) || chainId . Equals ( 302 ) || chainId . Equals ( 11124 ) ;
296
+ return chainId . Equals ( 324 ) || chainId . Equals ( 300 ) || chainId . Equals ( 302 ) || chainId . Equals ( 11124 ) || chainId . Equals ( 4654 ) ;
297
297
}
298
298
299
299
/// <summary>
You can’t perform that action at this time.
0 commit comments