Wrong behaviours with Web3 Library


I would like to know more about some behaviour that is occurring to me on the IoTeX network.

I am getting some past events with the web3 library, with the method contract.getPastEvents and I am getting 2 wrong behaviours:

  1. The Transfer events are not identified when specifying Tranfer on the contract.getPastEvents options, but they are wen just specifying allEvents

  2. When doing a web3.eth.getCode() I am getting the code of the contract until the 0th block, which does not seem to have any sense for every contract

I would love if someone could clarify me the cause of these behaviours.

Thank you very much!