Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: 'bls/bls.h' file not found #279

Open
ygcool opened this issue Jan 6, 2022 · 1 comment
Open

fatal error: 'bls/bls.h' file not found #279

ygcool opened this issue Jan 6, 2022 · 1 comment

Comments

@ygcool
Copy link

ygcool commented Jan 6, 2022

image

mac M1.

go get github.com/harmony-one/go-sdk
go mod tidy

I use go-sdk to generate private keys and addresses, send transactions, and rpc calls

package main

import (
	"fmt"

	"github.com/harmony-one/go-sdk/pkg/rpc"
)

func main() {
	node := "https://rpc.s0.b.hmny.io"
	address := "one1zvtdhx0yx2uyx8ps363tx4xmn59n2twjp7dkj3"
	balanceRPCReply, err := rpc.Request(rpc.Method.GetBalance, node, []interface{}{address, "latest"})
	if err != nil {
		panic(err)
	}
	fmt.Println(balanceRPCReply["result"].(string))
}

@harjas27
Copy link

you can try by cloning the repo - https://github.com/harmony-one/harmony and run(from the cloned repo's directory):

source scripts/setup_bls_build_flags.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants