Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OKX wallet adapter failed to estimate gas #379

Open
yenkhoon opened this issue Jul 26, 2024 · 1 comment
Open

OKX wallet adapter failed to estimate gas #379

yenkhoon opened this issue Jul 26, 2024 · 1 comment

Comments

@yenkhoon
Copy link

yenkhoon commented Jul 26, 2024

image

okx wallet failed to estimate gas. Below is the example code:

let transaction: InputTransactionData = {
            data: {
                function: "0x1::code::publish_package_txn",
                typeArguments: [],
                functionArguments: [hexToByteArray(metadataBytes), [hexToByteArray(byteCode)]],
            },
            options: {
                gasUnitPrice: processedGasUnitPrice
            }
        };
        
  const pendingTransaction = await signAndSubmitTransaction(transaction);

it that possible that okxwallet cant estimate gas for typeArguments is empty array? for other transaction like transfer is fine.

@evieyee
Copy link

evieyee commented Sep 6, 2024

As with this issue, suggesting to close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants