Created
July 8, 2020 09:20
-
-
Save MariusVanDerWijden/bca968be0f450c96e6a340e60e763b78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connect to a node | |
backend, err := ethclient.Dial("/tmp/geth.ipc") | |
// Get the contract address from hex string | |
addr := common.HexToAddress("0x000") | |
// Bind to an already deployed contract | |
ctr, err := contract.NewContract(addr, backend) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment