File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Assets/Thirdweb/Core/Scripts Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ public static async Task<TransactionReceipt> ThirdwebWriteRawResult<TWFunction>(
44
44
where TWFunction : FunctionMessage , new ( )
45
45
{
46
46
functionMessage . AmountToSend = weiValue ?? 0 ;
47
+ functionMessage . FromAddress = await ThirdwebManager . Instance . SDK . wallet . GetAddress ( ) ;
47
48
var gasEstimator = new Nethereum . Web3 . Web3 ( ThirdwebManager . Instance . SDK . nativeSession . lastRPC ) . Eth . GetContractTransactionHandler < TWFunction > ( ) ;
48
49
var gas = await gasEstimator . EstimateGasAsync ( contractAddress , functionMessage ) ;
49
50
functionMessage . Gas = gas . Value < 100000 ? 100000 : gas . Value ;
50
- functionMessage . FromAddress = await ThirdwebManager . Instance . SDK . wallet . GetAddress ( ) ;
51
51
52
52
if ( ThirdwebManager . Instance . SDK . options . gasless != null && ThirdwebManager . Instance . SDK . options . gasless . Value . openzeppelin != null )
53
53
{
You can’t perform that action at this time.
0 commit comments