Skip to content

Commit 17bc9c5

Browse files
committed
fix DropERC20_Claim w/ native token condition
1 parent b8788c1 commit 17bc9c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Thirdweb/Thirdweb.Extensions/ThirdwebExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ public static async Task<ThirdwebTransactionReceipt> DropERC20_Claim(this Thirdw
15821582

15831583
var isNativeToken = activeClaimCondition.Currency == Constants.NATIVE_TOKEN_ADDRESS;
15841584

1585-
var payableAmount = isNativeToken ? rawAmountToClaim * activeClaimCondition.PricePerToken : BigInteger.Zero;
1585+
var payableAmount = isNativeToken ? rawAmountToClaim * activeClaimCondition.PricePerToken / BigInteger.Pow(10, 18) : BigInteger.Zero;
15861586

15871587
// TODO: Merkle
15881588
var allowlistProof = new object[] { Array.Empty<byte>(), BigInteger.Zero, BigInteger.Zero, Constants.ADDRESS_ZERO };

0 commit comments

Comments
 (0)