Skip to content

Commit f741f0b

Browse files
Make Utils class static, use ToWei() in example
1 parent 4072136 commit f741f0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/Thirdweb/Demo/ThirdwebSDKDemos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public async void CustomContract()
251251
// custom write with transaction overrides
252252
// await contract.Write("claim", new TransactionRequest
253253
// {
254-
// value = "50000000000000000" // 0.05 ETH
254+
// value = "0.05".ToWei() // 0.05 ETH
255255
// }, "0xE79ee09bD47F4F5381dbbACaCff2040f2FbC5803", 0, 1);
256256
resultText.text = "Custom contraact call successful";
257257
}

Assets/Thirdweb/Scripts/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Thirdweb
88
{
9-
public class Utils
9+
public static class Utils
1010
{
1111

1212
public const string AddressZero = "0x0000000000000000000000000000000000000000";

0 commit comments

Comments
 (0)