Skip to content

Commit

Permalink
change return type of getSignatureRequestPayload
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Mar 22, 2024
1 parent 75bccbb commit adfe6f1
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/chains/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,24 @@ export class NearEthAdapter {
return this.relayTransaction(signedTx);
}

async getSignatureRequstPayload(
async getSignatureRequestPayload(
txData: BaseTx,
nearGas?: BN
): Promise<NearSignPayload> {
): Promise<{
transaction: FeeMarketEIP1559Transaction;
requestPayload: NearSignPayload;
}> {
console.log("Creating Payload for sender:", this.sender);
const { payload } = await this.createTxPayload(txData);
const { transaction, payload } = await this.createTxPayload(txData);
console.log("Requesting signature from Near...");
return this.mpcContract.buildSignatureRequestTx(
payload,
this.derivationPath,
nearGas
);
return {
transaction,
requestPayload: await this.mpcContract.buildSignatureRequestTx(
payload,
this.derivationPath,
nearGas
),
};
}

reconstructSignature = (
Expand Down

0 comments on commit adfe6f1

Please sign in to comment.