1

I have two contracts (A and B) in the same smart contract. When I access from B to a A's variable the value is different that I can see from A.

For instance, when I access from A to that variable has a length equal to 2 If I have inserted two values but when I access from B the lenght of that variable has a different value.

Why?

1
  • Any snippets of code would be helpful. Dec 5, 2017 at 9:20

1 Answer 1

0

I initially want to think that you want to make sure you're accessing the right scope of that variable...But it's hard to say without code. I'll update my response if you can get some snippets of code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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