aptos-labs / aptos-wallet-adapter

A monorepo modular wallet adapter for Aptos applications
https://aptos-labs.github.io/aptos-wallet-adapter/
Apache License 2.0
87 stars 93 forks source link

OKX wallet adapter failed to estimate gas #379

Open yenkhoon opened 1 month ago

yenkhoon commented 1 month ago
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 commented 1 week ago

As with this issue, suggesting to close