const transactionHash = await client.sendTransaction({
account, // Sender
to: "0x70997970c51812dc3a010c7d01b50e0d17dc79c8", // Recipient (illustrative address)
value: parseEther("0.01"), // 0.01 CELO
feeCurrency: "0x874069Fa1Eb16D44d622F2e0Ca25eeA172369bC1", // cUSD fee currency
maxFeePerGas: parseGwei("10"), // Special field for dynamic fee transaction type (EIP-1559)
maxPriorityFeePerGas: parseGwei("10"), // Special field for dynamic fee transaction type (EIP-1559)
});
This is expected, because the feeCurrency, gatewayFee, and gatewayFeeRecipient fields are never included in a transaction receipt. See here where the transaction receipt is defined in the Celo blockchain client.
That means the 3 fields can be removed from the transaction receipt
Is there an existing issue for this?
Package Version
1.16.0
Description
I build the following CIP-42 transaction.
Note that I specify cUSD as the fee currency:
Source: 0xarthurxyz/txtypes
When I parse (and format) the transaction receipt with:
The
feeCurrency
field isundefined
.This is expected, because the
feeCurrency
,gatewayFee
, andgatewayFeeRecipient
fields are never included in a transaction receipt. See here where the transaction receipt is defined in the Celo blockchain client.That means the 3 fields can be removed from the transaction receipt
See Slack discussion with the Blockchain team here.