@@ -73,22 +73,22 @@ public async Task IsDeployed_ReturnsTrue()
73
73
Assert . True ( await account . IsDeployed ( ) ) ;
74
74
}
75
75
76
- // [Fact(Timeout = 120000)]
77
- // public async Task SendGaslessZkTx_Success()
78
- // {
79
- // var account = await GetSmartAccount();
80
- // var hash = await account.SendTransaction(
81
- // new ThirdwebTransactionInput()
82
- // {
83
- // From = await account.GetAddress(),
84
- // To = await account.GetAddress(),
85
- // Value = new Nethereum.Hex.HexTypes.HexBigInteger(0),
86
- // Data = "0x"
87
- // }
88
- // );
89
- // Assert.NotNull(hash);
90
- // Assert.True(hash.Length == 66);
91
- // }
76
+ [ Fact ( Timeout = 120000 ) ]
77
+ public async Task SendGaslessZkTx_Success ( )
78
+ {
79
+ var account = await GetSmartAccount ( ) ;
80
+ var hash = await account . SendTransaction (
81
+ new ThirdwebTransactionInput ( )
82
+ {
83
+ From = await account . GetAddress ( ) ,
84
+ To = await account . GetAddress ( ) ,
85
+ Value = new Nethereum . Hex . HexTypes . HexBigInteger ( 0 ) ,
86
+ Data = "0x"
87
+ }
88
+ ) ;
89
+ Assert . NotNull ( hash ) ;
90
+ Assert . True ( hash . Length == 66 ) ;
91
+ }
92
92
93
93
// [Fact(Timeout = 120000)]
94
94
// public async Task SendGaslessZkTx_ZkCandy_Success()
@@ -106,4 +106,21 @@ public async Task IsDeployed_ReturnsTrue()
106
106
// Assert.NotNull(hash);
107
107
// Assert.True(hash.Length == 66);
108
108
// }
109
+
110
+ [ Fact ( Timeout = 120000 ) ]
111
+ public async Task SendGaslessZkTx_Abstract_Success ( )
112
+ {
113
+ var account = await GetSmartAccount ( zkChainId : 11124 ) ;
114
+ var hash = await account . SendTransaction (
115
+ new ThirdwebTransactionInput ( )
116
+ {
117
+ From = await account . GetAddress ( ) ,
118
+ To = await account . GetAddress ( ) ,
119
+ Value = new Nethereum . Hex . HexTypes . HexBigInteger ( 0 ) ,
120
+ Data = "0x"
121
+ }
122
+ ) ;
123
+ Assert . NotNull ( hash ) ;
124
+ Assert . True ( hash . Length == 66 ) ;
125
+ }
109
126
}
0 commit comments