I have written and deployed the following contract (source published):
When executing the function 'fillBid' using Mist I am being told: "it seems this transaction will fail if you submit it it may consume all the gas you send"
Sending the transaction non the less (https://ropsten.etherscan.io/tx/0x4c309daead9b976aa742c0ac30a75a5f6d22a083f46ba1753c88115a8b391c69) results in:
"Warning! Error encountered during contract execution [Bad instruction]"
I am starting to think it is something bleedingly obvious but I just can't figure it out. I am especially perplexed because there are literally no conditions on it.
(Almost) exact same code over at https://ropsten.etherscan.io/address/0x26c8532AE5953053Ea721c9922c3Ec8A1ab8129a
So I removed everything but the amount calculations and the transfer commands and it still fails: https://ropsten.etherscan.io/tx/0x683bcdbc4f4250b439b53692302dc8e75c6f42f6ce8243200b94d74565964267
UPDATE 2017-07-03_2: I have isolated the problem to this code:
uint256 _amountEthart; _amountEthart = highestBidPrice / 40; registrar.transfer(_amountEthart);
Executing fillBid1 errors out: https://ropsten.etherscan.io/tx/0xddc9505f4e794310091ffad933594da182d4c18f83764e33b39d3a5ca065e365
Executing fillBid or fillBid2 is fine: https://ropsten.etherscan.io/tx/0xce73e6a7cbc95e28538a29ff3e774462697e985897a5b924d1f719c46194bd12