Closed saarshah closed 4 years ago
We get some problems in full node caused user can not get a contract code after deploy immediately. You need to wait a few seconds to get code after contract deployed in current test net. Thank you for your feedback, we are trying to fix it.
@GeekBerry thanks ... if you have time, please answer my query posted in issue # 5. I shall be very thankful
We think in most case, user will not getCode
immediately after successful deploy a contract. So we will not support this situation recently.
Thank you for your issues again and I will remove this code from example file after close this issues soon.
I think this issues should be remained opened and labeled as "Enhancement", only if your team has plan to resolve/provide it in future.
I have run your example code, this code can deploy contract successfully. But when program reached at line where we are calling cfx.getCode, it gives us following error.
here is your code, which i am using
here is output with error
you can see the contract
0x123261f955d54fb83655f8beb008733dbd6c3e1a
is created, but when this is given tocfx.getCode
, it gives error. However, if i give directly the above address of contract like thiscfx.getCode('0x123261f955d54fb83655f8beb008733dbd6c3e1a')
, it works perfectly..