-
Notifications
You must be signed in to change notification settings - Fork 55
Using Inputs.GetHash and Transaction.GetHash in the same contract #38
Comments
BTW, if anybody wants to confirm this is a bug and point me in the right direction to fixing it, I'm happy to take a look. I'm still pretty new to the codebase so just want to make sure I'm not missing something. |
@slipo can you post the entire contract file for more context? |
Sure. Here's example 1 which works:
Here's example 2 which adds a call to
Note: I don't even need to import When I run
Originally somehow I think I saw an error related to Input's |
This is a little tricky since there's three things named You can see an example here, which uses both in the same contract: https://github.com/CityOfZion/neo-boa/blob/master/boa_test/example/blockchain/TransactionTest.py#L88 |
I was having quite a difficult time using Input.GetHash and Transaction.GetHash in the same contract. I ended up doing the following trick to get the compiler to allow me to.
Then in my contract I have a dummy function called
InputGetHash
.Before doing this I tried everything including separating the calls into separate files. Any clues or is this a bug?
The text was updated successfully, but these errors were encountered: