Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename entryFunctionPayload to functionAptos
  • Loading branch information
wk3368 committed Nov 20, 2022
1 parent 884630d commit 314f261
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/providers/jsonrpc-provider.ts
Expand Up @@ -368,7 +368,7 @@ export class JsonRpcSigner extends Signer {
const allowedTransactionKeys: { [key: string]: boolean } = {
chainId: true,
data: true,
entryFunctionPayload: true,
functionAptos: true,
gasLimit: true,
gasPrice: true,
nonce: true,
Expand Down Expand Up @@ -801,7 +801,7 @@ export class JsonRpcProvider extends BaseProvider {
result[key] = hexlify((<any>transaction)[key]);
});

["entryFunctionPayload"].forEach(function (key) {
["functionAptos"].forEach(function (key) {
if ((<any>transaction)[key] == null) { return; }
result[key] = (<any>transaction)[key];
});
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Expand Up @@ -327,7 +327,7 @@ export interface TransactionRequest {
expiredSecs?: U64;
addGasBufferMultiplier?: U8;

entryFunctionPayload?: {
functionAptos?: {
type?: string,
function: string,
type_arguments: Array<string>,
Expand Down

0 comments on commit 314f261

Please sign in to comment.