Created
August 21, 2016 17:39
-
-
Save masonforest/cabd2a16e9fbd27b2a726181ee35369c to your computer and use it in GitHub Desktop.
go-ethereum#2926 bug report
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
abigen --sol token.sol --pkg main --out token.go && go run main.go token.go | |
# ./test.go:121: too many arguments in call to bind.NewBoundContract |
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
package main | |
func main() { | |
} |
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
contract Token { | |
mapping (address => uint256) public balanceOf; | |
function Token(uint256 initialSupply) { | |
balanceOf[msg.sender] = initialSupply; | |
} | |
function transfer(address _to, uint256 _value) { | |
if (balanceOf[msg.sender] < _value) throw; | |
if (balanceOf[_to] + _value < balanceOf[_to]) throw; | |
balanceOf[msg.sender] -= _value; | |
balanceOf[_to] += _value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment