Skip to content

Instantly share code, notes, and snippets.

@SuperCipher
Created March 21, 2022 16:14
Show Gist options
  • Save SuperCipher/b56cb8c94c797eb97f8b3aa91c329f45 to your computer and use it in GitHub Desktop.
Save SuperCipher/b56cb8c94c797eb97f8b3aa91c329f45 to your computer and use it in GitHub Desktop.

Revisions

  1. SuperCipher created this gist Mar 21, 2022.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    E brownie.exceptions.VirtualMachineError: revert: dev: invalid _signature
    E Trace step 619, program counter 4422:
    E File "contracts/exchange_presale.vy", line 204, in exchange_presale.checkSellerSignature:
    E v: uint256 = convert(slice(_signature, 64, 1), uint256)
    E assert ecrecover(digest, v, r, s) == _sellers_signing_account # dev: invalid _signature
    E return digest

    tests/test_exchange_presale.py:309: VirtualMachineError