Skip to content

Commit 544ead8

Browse files
authored
Remove unnecessary extra sig during sim (#67)
1 parent 18213f7 commit 544ead8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Thirdweb/Thirdweb.Wallets/SmartWallet/SmartWallet.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,10 @@ private async Task<object> SignUserOp(ThirdwebTransactionInput transactionInput,
394394

395395
// Hash, sign and encode the user operation
396396

397-
partialUserOp.Signature = await this.HashAndSignUserOp(partialUserOp, this._entryPointContract).ConfigureAwait(false);
397+
if (!simulation)
398+
{
399+
partialUserOp.Signature = await this.HashAndSignUserOp(partialUserOp, this._entryPointContract).ConfigureAwait(false);
400+
}
398401

399402
return partialUserOp;
400403
}

0 commit comments

Comments
 (0)