0

Simple question, but I couldn’t find the answer.

When contract A CALLCODE B, B will uses A’s ledger. But which Ether balance will be used if B makes a normal transfer, the balance of A or the balance of B ?

-1

I think its always the balance from address reduced whosoever initiate the transaction/transfer. In this case balance of B. and yes B need some balance beforehand to do so.

  • Do you think, or do you have proofs ? Given that calling codesize from B gives the codesize of A (see instructions.Go in go Ethereum) I doubt so. Also if it was true, this would allows tricking B that A owns B for sending funds. Using B balance makes sense but sounds unlikely. So I don’t know. Please leave the question marked as unanswered if you won’t edit your answer through deleting your answer – user2284570 Jun 21 '18 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.