Skip to content

Instantly share code, notes, and snippets.

@masonforest
Created August 21, 2016 17:39
Show Gist options
  • Save masonforest/cabd2a16e9fbd27b2a726181ee35369c to your computer and use it in GitHub Desktop.
Save masonforest/cabd2a16e9fbd27b2a726181ee35369c to your computer and use it in GitHub Desktop.
go-ethereum#2926 bug report
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
package main
func main() {
}
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