class AccountStateServiceImpl implements AccountStateService {

    @Override
	public void initialMintingToKnownAddress(Accounts accounts) {
        logger.traceEntry("params: {}", accounts);
        AccountState accountState = null;

        try {

            //AccountAddress accountAddress = AccountAddress.fromBytes(Util.PUBLIC_KEY_MINTING.getValue());
            AccountAddress accountAddress = AppServiceProvider.getShardingService().getAddressForMinting(accounts.getShard());
            accountState = getOrCreateAccountState(accountAddress, accounts);
            accountState.setBalance(Util.VALUE_MINTING);
            setAccountState(accountAddress, accountState, accounts);
            accounts.getAccountsPersistenceUnit().commit();
            logger.trace("Done initial minting!");
        } catch (Exception ex) {
            logger.catching(ex);
        }
        logger.traceExit();
    }

}