Skip to content

Commit 54287d6

Browse files
committed
fix allocation delay
1 parent f6bf36b commit 54287d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/operator/allocations/set_allocation_delay.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func readAndValidateAllocationDelayConfig(c *cli.Context, logger logging.Logger)
155155
}
156156

157157
allocationDelayString := c.Args().First()
158-
allocationDelayInt, err := strconv.Atoi(allocationDelayString)
158+
allocationDelayUint, err := strconv.ParseUint(allocationDelayString, 10, 32)
159159
if err != nil {
160160
return nil, eigenSdkUtils.WrapError("failed to convert allocation delay to int", err)
161161
}
@@ -203,6 +203,6 @@ func readAndValidateAllocationDelayConfig(c *cli.Context, logger logging.Logger)
203203
operatorAddress: gethcommon.HexToAddress(operatorAddress),
204204
signerConfig: signerConfig,
205205
delegationManagerAddress: gethcommon.HexToAddress(delegationManagerAddress),
206-
allocationDelay: uint32(allocationDelayInt),
206+
allocationDelay: uint32(allocationDelayUint),
207207
}, nil
208208
}

0 commit comments

Comments
 (0)