Skip to content

Commit

Permalink
✅ test: fix mock modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pouya-eghbali committed Jun 3, 2024
1 parent 1755610 commit 1fa5ac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/pos/pos_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ func (m *MockService) GetVotingPower(address [20]byte, block *big.Int) (*big.Int
return big.NewInt(int64(args.Int(0))), args.Error(1)
}

func (m *MockService) GetVotingPowerOfEvm(address [20]byte, block *big.Int) (*big.Int, error) {
args := m.Called(address, block)
func (m *MockService) GetVotingPowerOfEvm(ctx context.Context, evmAddress string) (*big.Int, error) {
args := m.Called(ctx, evmAddress)
return big.NewInt(int64(args.Int(0))), args.Error(1)
}

Expand Down

0 comments on commit 1fa5ac6

Please sign in to comment.