Skip to content

Commit ad85a70

Browse files
committed
fix rlp too short serialized tx gas pub no pm
1 parent 3bb48c3 commit ad85a70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Thirdweb.Console/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
// Console.WriteLine("Make sure you have enough funds!");
115115
// Console.ReadLine();
116116

117-
// var hash = await ThirdwebTransaction.Send(zkRawTx);
118-
// Console.WriteLine($"Transaction hash: {hash}");
117+
// var receipt = await ThirdwebTransaction.SendAndWaitForTransactionReceipt(zkRawTx);
118+
// Console.WriteLine($"Receipt: {receipt}");
119119

120120
// // Extremely raw example
121121

Thirdweb/Thirdweb.Wallets/EIP712.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ private static string SerializeEip712(AccountAbstraction.ZkSyncAATransaction tra
387387
// add array of rlp encoded paymaster/paymasterinput
388388
transaction.Paymaster != 0
389389
? RLP.EncodeElement(transaction.Paymaster.ToByteArray(isUnsigned: true, isBigEndian: true)).Concat(RLP.EncodeElement(transaction.PaymasterInput)).ToArray()
390-
: Array.Empty<byte>()
390+
: new byte[] { 0xc0 }
391391
};
392392

393393
return "0x71" + RLP.EncodeDataItemsAsElementOrListAndCombineAsList(fields.ToArray(), _indexOfListDataItems).ToHex();

0 commit comments

Comments
 (0)