Skip to content

Commit 5b09722

Browse files
committed
Don't go through wallet for contract.write web3
1 parent bc41d01 commit 5b09722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Thirdweb/Core/Scripts/Contract.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public async Task<TransactionResult> Write(string functionName, TransactionReque
196196
if (this.abi == null)
197197
throw new UnityException("You must pass an ABI for native platform custom calls");
198198

199-
var contract = ThirdwebManager.Instance.SDK.session.Web3.Eth.GetContract(this.abi, this.address);
199+
var contract = Utils.GetWeb3().Eth.GetContract(this.abi, this.address);
200200

201201
var function = contract.GetFunction(functionName);
202202

0 commit comments

Comments
 (0)