Skip to content

Commit

Permalink
possible fix: pointer to common stakepool
Browse files Browse the repository at this point in the history
  • Loading branch information
devyetii committed Mar 24, 2024
1 parent 76a8d01 commit 84ea272
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
4 changes: 2 additions & 2 deletions code/go/0chain.net/smartcontract/zcnsc/stakepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import (
//type stakePool stakepool.Provider

type StakePool struct {
stakepool.StakePool
*stakepool.StakePool
}

func NewStakePool() *StakePool {
pool := stakepool.NewStakePool()
return &StakePool{
StakePool: *pool,
StakePool: pool,
}
}

Expand Down
39 changes: 30 additions & 9 deletions code/go/0chain.net/smartcontract/zcnsc/stakepool_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84ea272

Please sign in to comment.