Seeking clarification on why the claimMessage method exists in the ERC20 token class, as it seems conceptually different from token-specific operations.
In src/native/tokens/erc20.ts, there's a claimMessage method:
/**
* Claim message from bridge transaction hash
*
* @param transactionHash - Hash of the bridge transaction on the source network
* @param sourceNetworkId - Network ID of the source network (where bridge tx happened)
* @param bridgeIndex - Index of bridge event in transaction (default: 0)
* @param from - From address for the claim transaction
*/
async claimMessage(
transactionHash: string,
sourceNetworkId: number,
bridgeIndex = 0,
from?: string
): Promise<TransactionParams> {
const bridge = this.getBridge();
return bridge.buildClaimMessageFromHash(
transactionHash,
sourceNetworkId,
bridgeIndex,
from
);
}
Seeking clarification on why the
claimMessagemethod exists in the ERC20 token class, as it seems conceptually different from token-specific operations.In
src/native/tokens/erc20.ts, there's aclaimMessagemethod: