Skip to content

I want to retieve data from contract A that has been already stored in the contract B by contract A? #40

Discussion options

You must be logged in to vote

@MahammadKumar Which address are you passing to check the balance?

You are using msg.sender here balances[msg.sender] += _money; and so here

uint balance = contractaddress._addmoney(amount);

msg.sender will be contract not the EOA

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MahammadKumar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants