Skip to content

Commit

Permalink
nit: fix PR comment
Browse files Browse the repository at this point in the history
Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
  • Loading branch information
IvanKavaldzhiev committed Aug 15, 2023
1 parent c3153b0 commit 864630b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ protected HederaFunctionality getFunctionType() {
protected MessageFrame buildInitialFrame(
final MessageFrame.Builder baseInitialFrame, final Address to, final Bytes payload, long value) {
final var code = codeCache.getIfPresent(aliasManager.resolveForEvm(to));
final var isCreate = Address.ZERO.equals(to);

if (code == null) {
throw new InvalidTransactionException(
ResponseCodeEnum.INVALID_TRANSACTION, StringUtils.EMPTY, StringUtils.EMPTY);
}

if (Address.ZERO.equals(to)) {
if (isCreate) {
return baseInitialFrame
.type(MessageFrame.Type.CONTRACT_CREATION)
.address(to)
Expand Down

0 comments on commit 864630b

Please sign in to comment.