Search in sources :

Example 1 with MirrorAssessedCustomFee

use of com.hedera.mirror.test.e2e.acceptance.props.MirrorAssessedCustomFee in project hedera-mirror-node by hashgraph.

the class CustomFeesConverter method mirrorAssessedCustomFee.

@DataTableType
public MirrorAssessedCustomFee mirrorAssessedCustomFee(Map<String, String> entry) {
    MirrorAssessedCustomFee assessedCustomFee = new MirrorAssessedCustomFee();
    assessedCustomFee.setAmount(Long.parseLong(entry.get("amount")));
    assessedCustomFee.setCollectorAccountId(tokenFeature.getRecipientAccountId(Integer.parseInt(entry.get("collector"))).toString());
    assessedCustomFee.setTokenId(getToken(entry.get("token")));
    return assessedCustomFee;
}
Also used : MirrorAssessedCustomFee(com.hedera.mirror.test.e2e.acceptance.props.MirrorAssessedCustomFee) DataTableType(io.cucumber.java.DataTableType)

Aggregations

MirrorAssessedCustomFee (com.hedera.mirror.test.e2e.acceptance.props.MirrorAssessedCustomFee)1 DataTableType (io.cucumber.java.DataTableType)1