Skip to content

Commit 0fdc752

Browse files
authored
fix: stakerInfo fails due to bind.CallOpts type mismatch (#1278)
1 parent 6f59ca8 commit 0fdc752

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/struct-utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ func (s StakeManagerStruct) StakerInfo(client *ethclient.Client, stakerId uint32
528528
func (s StakeManagerStruct) GetMaturity(client *ethclient.Client, age uint32) (uint16, error) {
529529
stakeManager, opts := UtilsInterface.GetStakeManagerWithOpts(client)
530530
index := age / 10000
531-
returnedValues := InvokeFunctionWithTimeout(stakeManager, "Maturities", opts, big.NewInt(int64(index)))
531+
returnedValues := InvokeFunctionWithTimeout(stakeManager, "Maturities", &opts, big.NewInt(int64(index)))
532532
returnedError := CheckIfAnyError(returnedValues)
533533
if returnedError != nil {
534534
return 0, returnedError

0 commit comments

Comments
 (0)