I'm using the first Mutan example from
https://github.com/ethereum/go-ethereum/wiki/PoC-5-Mutan-Examples. As-is, it doesn't work when sending a txn to it. The GT compare is always 0 because -- I think -- this.store[from] is coming back with 0 every time.
However if I change the 'from' variable to this.origin() throughout, it does work.
Not working:
http://pastebin.com/B17mkFeGWorking:
http://pastebin.com/9kAXHjbJ
Comments
I have distilled this further. Above is the result of the following contract run with an argument of 10. It appears the final assignment goes to storage address 10 instead of 'from'
this.store[this.origin()] = 10**20
return lambda {
big to = this.data[0]
big from = this.origin()
this.store[from] = this.store[from] + 1
}