From 34540d9912f0e7781ffb5a943627afc0b5f3029e Mon Sep 17 00:00:00 2001 From: danwt <30197399+danwt@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:26:24 +0100 Subject: [PATCH] remove conversion --- x/rollapp/keeper/msg_server_update_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/rollapp/keeper/msg_server_update_state.go b/x/rollapp/keeper/msg_server_update_state.go index f95b6e144..a96a65b5b 100644 --- a/x/rollapp/keeper/msg_server_update_state.go +++ b/x/rollapp/keeper/msg_server_update_state.go @@ -52,7 +52,7 @@ func (k msgServer) UpdateState(goCtx context.Context, msg *types.MsgUpdateState) } // check to see if received height is the one we expected - expectedStartHeight := stateInfo.StartHeight + uint64(stateInfo.NumBlocks()) + expectedStartHeight := stateInfo.StartHeight + stateInfo.NumBlocks() if expectedStartHeight != msg.StartHeight { return nil, errorsmod.Wrapf(types.ErrWrongBlockHeight, "expected height (%d), but received (%d)",