Skip to content

Commit 4df67e6

Browse files
committed
Duplicated Samples [skip ci]
1 parent 4e51ae6 commit 4df67e6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Web3.Unity Chainlink Lootboxes/Scripts/ChainlinkLootboxSampleLauncher.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using ChainSafe.Gaming.Web3.Unity;
1313
using Microsoft.Extensions.DependencyInjection;
1414
using UnityEngine;
15+
using NativeCurrency = ChainSafe.Gaming.Web3.NativeCurrency;
1516

1617

1718
namespace LootBoxes.Chainlink
@@ -38,7 +39,12 @@ private class Web3Config : ICompleteProjectConfig
3839
ChainId = "31337",
3940
Chain = "Anvil",
4041
Network = "GoChain Testnet",
41-
Symbol = "GO",
42+
NativeCurrency = new NativeCurrency()
43+
{
44+
Name = "Go Ether",
45+
Symbol = "GO",
46+
Decimals = 18
47+
},
4248
Rpc = $"http://127.0.0.1:8545",
4349
BlockExplorerUrl = "https://explorer.gochain.io/",
4450
}

Packages/io.chainsafe.web3-unity.marketplace/Samples~/Web3.Unity Marketplace/Scripts/UI_MarketplaceItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task Initialize(MarketplaceItem model)
3535
itemId.text = "ID " + model.Token.Id;
3636
itemPrice.text =
3737
((decimal)BigInteger.Parse(model.Price) / (decimal)BigInteger.Pow(10, 18)).ToString("0.############",
38-
CultureInfo.InvariantCulture) + Web3Unity.Web3.ChainConfig.Symbol;
38+
CultureInfo.InvariantCulture) + Web3Unity.Web3.ChainConfig.NativeCurrency.Symbol;
3939
button.onClick.AddListener(Purchase);
4040
}
4141

@@ -68,7 +68,7 @@ private async void Purchase()
6868
button.interactable = false;
6969
itemStatus.text = "Sold";
7070
}
71-
catch (ServiceNotBoundWeb3Exception<ISigner> _)
71+
catch (ServiceNotBoundWeb3Exception<ISigner>)
7272
{
7373
Debug.LogError("You wanted to purchase an item and you don't have a wallet. Please connect the wallet to make a purchase");
7474
Web3Unity.ConnectionScreen.Open();

Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scenes/SampleMain.unity

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ RectTransform:
11191119
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
11201120
m_AnchorMin: {x: 0, y: 0}
11211121
m_AnchorMax: {x: 1, y: 1}
1122-
m_AnchoredPosition: {x: -0.000030517578, y: 0}
1122+
m_AnchoredPosition: {x: -0.000061035156, y: 0}
11231123
m_SizeDelta: {x: 0, y: 0}
11241124
m_Pivot: {x: 0, y: 1}
11251125
--- !u!114 &1703188665

0 commit comments

Comments
 (0)