ape icon indicating copy to clipboard operation
ape copied to clipboard

Transaction confirmation is logged twice

Open BlinkyStitt opened this issue 11 months ago • 5 comments

Environment information

  • OS: macOS
  • Python Version: 3.10.13
  • ape and plugin versions:
$ ape --version
0.7.11.dev9+ga8d1487d

$ ape plugins list
Installed Plugins
  alchemy         0.7.1
  ens             0.7.0
  etherscan       0.7.1
  foundry         0.7.4.dev6+ga535421
  ganache         0.7.0
  hardhat         0.7.0
  infura          0.7.1
  polygon         0.7.1
  solidity        0.7.1
  template        0.7.0
  tokens          0.7.1
  vyper           0.7.0

Third-party Plugins
  flashprofits    0.0.1
  roll            0.0.3

What went wrong?

The contract deploy is working, but there are two identical log messages:

INFO: Confirmed 0x79df564bc93a4c93d60bd5b0a8b9d30057c77eaea1aecebbf14c4ecce0910216 (total fees paid = 430287000000000)
INFO: Confirmed 0x79df564bc93a4c93d60bd5b0a8b9d30057c77eaea1aecebbf14c4ecce0910216 (total fees paid = 430287000000000)
SUCCESS: Contract 'FlashWalletV3' deployed to: 0x24EcC5E6EaA700368B8FAC259d3fBD045f695A08
INFO: Confirmed 0xff639154e0febfa0b8c6471465689dfe5727eaeefc24a2dba85a1c4206387ef3 (total fees paid = 1266760000000000)
INFO: Confirmed 0xff639154e0febfa0b8c6471465689dfe5727eaeefc24a2dba85a1c4206387ef3 (total fees paid = 1266760000000000)
SUCCESS: Contract 'PrismaArbitrageV1' deployed to: 0x876939152C56362e17D508B9DEA77a3fDF9e4083

BlinkyStitt avatar Mar 10 '24 05:03 BlinkyStitt

Just to confirm @BlinkyStitt, the transaction isn't getting posted twice right?

fubuloubu avatar Mar 11 '24 23:03 fubuloubu

i am guessing this is related to this decorator thing: https://github.com/ApeWorX/ape/blob/main/src/ape_ethereum/provider.py#L119-L123

antazoey avatar Mar 28 '24 16:03 antazoey

I have not been able to reproduce and would like some more information please. Which provider are you using to deploy? What network are you on? Are you running a script or using the ape console or running tests or something else? Thank you

antazoey avatar Mar 28 '24 16:03 antazoey

happens to me a lot too, both in scripts and tests image

banteg avatar May 02 '24 12:05 banteg

It happens to me when using Foundry but no other provider.

antazoey avatar May 03 '24 13:05 antazoey