public UInt256?BlockGasLimit(BlockHeader parentHeader) { this.BlockActivationCheck(parentHeader); var function = nameof(BlockGasLimit); var returnData = Constant.CallRaw(parentHeader, function, Address.Zero); return((returnData?.Length ?? 0) == 0 ? (UInt256?)null : (UInt256)returnData[0]); }
public UInt256?BlockGasLimit(BlockHeader parentHeader) { this.BlockActivationCheck(parentHeader); var function = Definition.GetFunction(nameof(BlockGasLimit)); var bytes = Constant.CallRaw(parentHeader, function, Address.Zero); return((bytes?.Length ?? 0) == 0 ? (UInt256?)null : (UInt256)AbiEncoder.Decode(function.GetReturnInfo(), bytes)[0]); }