Skip to content

Commit

Permalink
[cgo] refs #105 Correcting declare function in `SKY_params_Distributi…
Browse files Browse the repository at this point in the history
…on_GetMainNetDistribution`
  • Loading branch information
Maykel Arias Torres committed Sep 14, 2019
1 parent 8fbd656 commit b08948a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/cgo/params.distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,7 @@ func SKY_params_Distribution_LockedAddressesDecoded(_d C.Distribution__Handle, _

//export SKY_params_Distribution_GetMainNetDistribution
func SKY_params_Distribution_GetMainNetDistribution(_d *C.Distribution__Handle) (____error_code uint32) {
d, ok := lookupDistributionHandle(*_d)
if !ok {
____error_code = SKY_BAD_HANDLE
return
}
*d = params.MainNetDistribution
*_d = registerDistributionHandle(d)
*_d = registerDistributionHandle(&params.MainNetDistribution)
return
}

Expand Down

0 comments on commit b08948a

Please sign in to comment.