You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
banned_validators calls functions.banned, which the staking ABI does not have #147
staking.banned_validators() (and GenLayerClient.banned_validators()) always raises: it calls functions.banned(start_index, size), but the packaged staking ABI (genlayer_py/staking/abi/staking_abi.json) has no banned function, so web3 raises ABIFunctionNotFound before any RPC is made
client.banned_validators() # ABIFunctionNotFound: ... 'banned' was not found in this contract's abi
Expected
The ABI has getAllBannedValidators(uint256 _startIndex, uint256 _size), returning IGenLayerStaking.BannedValidators[]: (address validator, uint256 untilEpochBanned, bool permanentlyBanned). The method should call it
Notes
The return annotation list[ChecksumAddress] does not match that struct: returning the addresses only drops untilEpochBanned and permanentlyBanned, so changing the return type is an API decision
getAllBannedValidatorsForEpoch(uint256 _epoch, ...) exists too
No unit test covers the method; a test that builds the contract from the packaged ABI would have caught it
Check the genlayer-js counterpart for the same mismatch
Activity