use of com.hedera.mirror.common.domain.entity.EntityType.CONTRACT in project hedera-mirror-node by hashgraph.
the class ContractUpdateTransactionHandlerTest method updateTransactionDeclineReward.
@Test
void updateTransactionDeclineReward() {
RecordItemBuilder recordItemBuilder = new RecordItemBuilder();
RecordItem withDeclineValueSet = recordItemBuilder.contractUpdate().transactionBody(body -> body.setDeclineReward(BoolValue.of(false)).clearStakedAccountId().clearStakedNodeId()).build();
setupForContractUpdateTransactionTest(withDeclineValueSet, t -> assertThat(t).returns(false, Contract::isDeclineReward).returns(null, Contract::getStakedNodeId).returns(null, Contract::getStakedAccountId).returns(Utility.getEpochDay(withDeclineValueSet.getConsensusTimestamp()), Contract::getStakePeriodStart));
}
Aggregations