Skip to content

Commit 75b37cb

Browse files
committed
ThirdwebManager Prefab with no relayer by default + hex fix
1 parent 6d14859 commit 75b37cb

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Assets/Thirdweb/Examples/Prefabs/ThirdwebManager.prefab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ MonoBehaviour:
114114
chainId: 97
115115
rpcOverride:
116116
storageIpfsGatewayUrl: https://gateway.ipfscdn.io/ipfs/
117-
relayerUrl: https://api.defender.openzeppelin.com/autotasks/7d795312-855d-4f02-900a-30c1dde211cb/runs/webhook/76da2beb-fbb1-4082-bbb8-d4429dedee81/E33wsMacq1ZDCQVHPTZVo
118-
relayerForwarderAddress: 0x5001A14CA6163143316a7C614e30e6041033Ac20
117+
relayerUrl:
118+
relayerForwarderAddress:

Assets/Thirdweb/Examples/Scenes/Scene_Prefabs.unity

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,6 +2280,14 @@ PrefabInstance:
22802280
m_Modification:
22812281
m_TransformParent: {fileID: 0}
22822282
m_Modifications:
2283+
- target: {fileID: 4404896360829706404, guid: 379ed01658d62a14484f953196ff19db, type: 3}
2284+
propertyPath: relayerUrl
2285+
value: https://api.defender.openzeppelin.com/autotasks/7d795312-855d-4f02-900a-30c1dde211cb/runs/webhook/76da2beb-fbb1-4082-bbb8-d4429dedee81/E33wsMacq1ZDCQVHPTZVo
2286+
objectReference: {fileID: 0}
2287+
- target: {fileID: 4404896360829706404, guid: 379ed01658d62a14484f953196ff19db, type: 3}
2288+
propertyPath: relayerForwarderAddress
2289+
value: 0x5001A14CA6163143316a7C614e30e6041033Ac20
2290+
objectReference: {fileID: 0}
22832291
- target: {fileID: 4404896360829706405, guid: 379ed01658d62a14484f953196ff19db, type: 3}
22842292
propertyPath: m_RootOrder
22852293
value: 3

Assets/Thirdweb/Examples/Scripts/Prefabs/ThirdwebManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ private void Awake()
9494
int chainId = int.Parse(currentChain.chainId);
9595

9696
ThirdwebSDK.Options options = new ThirdwebSDK.Options();
97-
if (storageIpfsGatewayUrl != null)
97+
if (!string.IsNullOrEmpty(storageIpfsGatewayUrl))
9898
{
9999
options.storage = new ThirdwebSDK.StorageOptions() { ipfsGatewayUrl = storageIpfsGatewayUrl };
100100
}
101-
if (relayerUrl != null && relayerForwarderAddress != null)
101+
if (!string.IsNullOrEmpty(relayerUrl) && !string.IsNullOrEmpty(relayerForwarderAddress))
102102
{
103103
options.gasless = new ThirdwebSDK.GaslessOptions()
104104
{

0 commit comments

Comments
 (0)