Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add TokenUpdateNFTs as a smart contract operation v2 #15445

Merged
merged 4 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: spotless
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
  • Loading branch information
stoyanov-st committed Sep 12, 2024
commit ee649d83ec93065b4cb8663a13c4597ea4b707b5
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
@NonNull final SystemContractGasCalculator systemContractGasCalculator,
@NonNull final HederaWorldUpdater.Enhancement enhancement,
@NonNull final AccountID payerId) {
return systemContractGasCalculator.gasRequirement(body, DispatchType.TOKEN_UPDATE_NFTS, payerId);

Check warning on line 62 in hedera-node/hedera-smart-contract-service-impl/src/main/java/com/hedera/node/app/service/contract/impl/exec/systemcontracts/hts/update/UpdateNFTsMetadataTranslator.java

View check run for this annotation

Codecov / codecov/patch

hedera-node/hedera-smart-contract-service-impl/src/main/java/com/hedera/node/app/service/contract/impl/exec/systemcontracts/hts/update/UpdateNFTsMetadataTranslator.java#L62

Added line #L62 was not covered by tests
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ Configuration getTestConfiguration(final boolean enableUpdateNFTsMetadata) {
.withValue("contracts.systemContract.updateNFTsMetadata.enabled", enableUpdateNFTsMetadata)
.getOrCreateConfig();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ protected SpecOperation computeDelegate(@NonNull HapiSpec spec) {
Optional.ofNullable(assertions).ifPresent(a -> a.accept(op));
return op;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ public Stream<DynamicTest> failToUseUpdateMetadataForNFTsLargeMetadata() {
.andAssert(txn -> txn.hasKnownStatuses(CONTRACT_REVERT_EXECUTED, METADATA_TOO_LONG)));
}
}
}
}
Loading