Replies: 1 comment
-
I've found another way to get For anyone curious how I manage to get round info: import { Container, Contracts, Utils as AppUtils } from "@arkecosystem/core-kernel";
@Container.injectable()
export default class Service {
@Container.inject(Container.Identifiers.StateStore)
private readonly stateStore!: Contracts.State.StateStore;
start() {
const block = this.stateStore.getLastBlock();
const roundInfo = AppUtils.roundCalculator.calculateRound(block.data.height);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to get information about a round using
getRoundInfo
method. I've tried calling that function via triggers and by injecting a service and calling thegetRoundInfo
method that way. Both approaches failed. I'm having difficulty understanding why some service methods aren't callable while I'm able to see them being used elsewhere incore
?Using triggers.
Using injected service
Results in the following error:
Beta Was this translation helpful? Give feedback.
All reactions