Skip to content

Commit

Permalink
Merge pull request #3662 from aura-nw/feat/sere/method
Browse files Browse the repository at this point in the history
[fix][696]: logic check create contract
  • Loading branch information
TranTrungTien authored Jul 26, 2024
2 parents 25ba74b + e657703 commit 2e08207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ export class EvmMessageComponent {
getMethodName(methodId) {
this.transactionService.getListMappingName(methodId).subscribe((res) => {
this.method = mappingMethodName(res, methodId);
if (!this.isEvmContract) this.method = 'Send';
if (!this.transaction?.to) this.method = 'Create Contract';
if (this.transaction?.to && !this.isEvmContract) this.method = 'Send';
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class EvmTransactionComponent implements OnChanges {
const methodId = this.transaction?.inputData?.substring(0, 8);
this.transactionService.getListMappingName(methodId).subscribe((res) => {
this.method = mappingMethodName(res, methodId);
if (!this.isEvmContract) this.method = 'Send';
if (this.transaction.to && !this.isEvmContract) this.method = 'Send';
});
}

Expand All @@ -147,7 +147,7 @@ export class EvmTransactionComponent implements OnChanges {
this.getMethod();
},
});
} else this.method = 'Create Contract'
} else this.getMethod();
}

parseEvmTx(tx: unknown): typeof this.transaction {
Expand Down

0 comments on commit 2e08207

Please sign in to comment.