Skip to content

Commit baf34eb

Browse files
committed
Fix type parsing webgl + respect type native
1 parent 8a0d81b commit baf34eb

File tree

2 files changed

+76
-73
lines changed

2 files changed

+76
-73
lines changed

Assets/Thirdweb/Core/Scripts/Transaction.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ private async Task<string> Send()
443443
}
444444
else
445445
{
446-
var supports1559 = Utils.Supports1559(_sdk.Session.ChainId.ToString());
446+
var force1559 = Input.Type != null && Input.Type.HexValue == new HexBigInteger((int)TransactionType.EIP1559).HexValue;
447+
Debug.Log($"Force 1559: {force1559}");
448+
var supports1559 = force1559 || (Input.Type == null && Utils.Supports1559(_sdk.Session.ChainId.ToString()));
449+
Debug.Log($"Supports 1559: {supports1559}");
447450
if (supports1559)
448451
{
449452
if (Input.GasPrice == null)

Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js

Lines changed: 72 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)