Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
Merge 30ac131 into b78e287
Browse files Browse the repository at this point in the history
  • Loading branch information
jseagrave21 committed Jul 10, 2019
2 parents b78e287 + 30ac131 commit 0daf245
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ All notable changes to this project are documented in this file.
- Fix ``BigInteger`` modulo for negative divisor values
- Fix ``GetBoolean()`` for ``Array`` stackitem
- Fix ``BigInteger`` division for negative dividend values
- Add functionality for RawTransaction class


[0.8.4] 2019-02-14
Expand Down
2 changes: 1 addition & 1 deletion neo/Core/TX/Transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def Verify(self, snapshot, mempool):
# return False
#

def GetScriptHashesForVerifying(self, snapshot):
def GetScriptHashesForVerifying(self, snapshot=None):
"""
Get a list of script hashes for verifying transactions.
Expand Down
5 changes: 4 additions & 1 deletion neo/SmartContract/ContractParameterContext.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ class ContractParametersContext:
def __init__(self, verifiable, isMultiSig=False):

self.Verifiable = verifiable
self.ScriptHashes = verifiable.GetScriptHashesForVerifying(GetBlockchain()._db.createSnapshot())
if verifiable.raw_tx:
self.ScriptHashes = verifiable.GetScriptHashesForVerifying()
else:
self.ScriptHashes = verifiable.GetScriptHashesForVerifying(GetBlockchain()._db.createSnapshot())
self.ContextItems = {}
self.IsMultiSig = isMultiSig

Expand Down

0 comments on commit 0daf245

Please sign in to comment.