fixed test case

pull/4065/head
haodi 3 years ago
parent a22498858b
commit 3316a1d8b5
  1. 10
      core/vm/contracts_write_test.go

@ -20,31 +20,31 @@ type writeCapablePrecompileTest struct {
} }
func CollectRewardsFn() CollectRewardsFunc { func CollectRewardsFn() CollectRewardsFunc {
return func(db StateDB, collectRewards *stakingTypes.CollectRewards) error { return func(db StateDB, rosettaTracer RosettaTracer, collectRewards *stakingTypes.CollectRewards) error {
return nil return nil
} }
} }
func DelegateFn() DelegateFunc { func DelegateFn() DelegateFunc {
return func(db StateDB, delegate *stakingTypes.Delegate) error { return func(db StateDB, rosettaTracer RosettaTracer, delegate *stakingTypes.Delegate) error {
return nil return nil
} }
} }
func UndelegateFn() UndelegateFunc { func UndelegateFn() UndelegateFunc {
return func(db StateDB, undelegate *stakingTypes.Undelegate) error { return func(db StateDB, rosettaTracer RosettaTracer, undelegate *stakingTypes.Undelegate) error {
return nil return nil
} }
} }
func CreateValidatorFn() CreateValidatorFunc { func CreateValidatorFn() CreateValidatorFunc {
return func(db StateDB, createValidator *stakingTypes.CreateValidator) error { return func(db StateDB, rosettaTracer RosettaTracer, createValidator *stakingTypes.CreateValidator) error {
return nil return nil
} }
} }
func EditValidatorFn() EditValidatorFunc { func EditValidatorFn() EditValidatorFunc {
return func(db StateDB, editValidator *stakingTypes.EditValidator) error { return func(db StateDB, rosettaTracer RosettaTracer, editValidator *stakingTypes.EditValidator) error {
return nil return nil
} }
} }

Loading…
Cancel
Save