Skip to content

Commit 484df2d

Browse files
committed
unnecessary tostring
1 parent 9af3fa0 commit 484df2d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Thirdweb/Thirdweb.Wallets/SmartWallet/SmartWallet.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,7 @@ private async Task<object> SignUserOp(ThirdwebTransactionInput transactionInput,
680680
var abiEncoder = new ABIEncode();
681681
var slotBytes = abiEncoder.GetABIEncoded(new ABIValue("address", this._accountContract.Address), new ABIValue("uint256", this._erc20PaymasterStorageSlot));
682682
var desiredBalance = BigInteger.Pow(2, 96) - 1;
683-
var storageDict = new Dictionary<string, string>
684-
{
685-
{ new Sha3Keccack().CalculateHash(slotBytes).BytesToHex().ToString(), desiredBalance.ToHexBigInteger().HexValue.HexToBytes32().BytesToHex() }
686-
};
683+
var storageDict = new Dictionary<string, string> { { new Sha3Keccack().CalculateHash(slotBytes).BytesToHex(), desiredBalance.ToHexBigInteger().HexValue.HexToBytes32().BytesToHex() } };
687684
stateDict = new Dictionary<string, object> { { this._erc20PaymasterToken, new { stateDiff = storageDict } } };
688685
}
689686
else

0 commit comments

Comments
 (0)