Skip to content

feat: add function to withdraw and check delegator rewards #7662

feat: add function to withdraw and check delegator rewards

feat: add function to withdraw and check delegator rewards #7662

Triggered via pull request November 15, 2024 23:12
Status Failure
Total duration 4m 39s
Artifacts

sast-linters.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: precompiles/precompiles.go#L55
cannot use staking.NewIStakingContract(ctx, stakingKeeper, *fungibleKeeper, bankKeeper, distributionKeeper, cdc, gasConfig) (value of type *staking.Contract) as vm.PrecompiledContract value in return statement: *staking.Contract does not implement vm.PrecompiledContract (wrong type for method Run)
lint: precompiles/precompiles.go#L67
cannot use stakingContract (variable of type func(ctx "github.com/cosmos/cosmos-sdk/types".Context, _ params.Rules) vm.PrecompiledContract) as "github.com/zeta-chain/ethermint/x/evm/keeper".CustomContractFn value in argument to append (typecheck)
lint: app/app.go#L97
could not import github.com/zeta-chain/node/precompiles (-: # github.com/zeta-chain/node/precompiles
lint: precompiles/precompiles.go#L55
cannot use staking.NewIStakingContract(ctx, stakingKeeper, *fungibleKeeper, bankKeeper, distributionKeeper, cdc, gasConfig) (value of type *staking.Contract) as vm.PrecompiledContract value in return statement: *staking.Contract does not implement vm.PrecompiledContract (wrong type for method Run)
lint: precompiles/precompiles.go#L67
cannot use stakingContract (variable of type func(ctx "github.com/cosmos/cosmos-sdk/types".Context, _ params.Rules) vm.PrecompiledContract) as "github.com/zeta-chain/ethermint/x/evm/keeper".CustomContractFn value in argument to append) (typecheck)
lint: zetaclient/chains/bitcoin/observer/observer.go#L44
cannot use (*Observer)(nil) (value of type *Observer) as "github.com/zeta-chain/node/zetaclient/chains/interfaces".ChainObserver value in variable declaration: *Observer does not implement "github.com/zeta-chain/node/zetaclient/chains/interfaces".ChainObserver (missing method ChainParams) (typecheck)
lint: zetaclient/chains/bitcoin/observer/event.go#L175
ob.Chain undefined (type *Observer has no field or method Chain) (typecheck)
lint: zetaclient/chains/bitcoin/observer/event.go#L178
ob.Logger undefined (type *Observer has no field or method Logger, but does have logger) (typecheck)
lint: zetaclient/chains/bitcoin/observer/event.go#L181
ob.logger.Inbound undefined (type Logger has no field or method Inbound) (typecheck)
lint: zetaclient/chains/bitcoin/observer/event.go#L182
ob.Chain undefined (type *Observer has no field or method Chain) (typecheck)