OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix log (#388)
[bytom/vapor.git]
/
test
/
tx_test_util.go
diff --git
a/test/tx_test_util.go
b/test/tx_test_util.go
index
11c6313
..
f8ce45d
100644
(file)
--- a/
test/tx_test_util.go
+++ b/
test/tx_test_util.go
@@
-14,6
+14,7
@@
import (
"github.com/vapor/consensus"
"github.com/vapor/crypto/ed25519/chainkd"
"github.com/vapor/crypto/sha3pool"
"github.com/vapor/consensus"
"github.com/vapor/crypto/ed25519/chainkd"
"github.com/vapor/crypto/sha3pool"
+ "github.com/vapor/database"
dbm "github.com/vapor/database/leveldb"
"github.com/vapor/errors"
"github.com/vapor/protocol/bc"
dbm "github.com/vapor/database/leveldb"
"github.com/vapor/errors"
"github.com/vapor/protocol/bc"
@@
-267,7
+268,7
@@
func SignInstructionFor(input *types.SpendInput, db dbm.DB, signer *signers.Sign
cp := account.CtrlProgram{}
var hash [32]byte
sha3pool.Sum256(hash[:], input.ControlProgram)
cp := account.CtrlProgram{}
var hash [32]byte
sha3pool.Sum256(hash[:], input.ControlProgram)
- bytes := db.Get(
account.ContractKey(hash
))
+ bytes := db.Get(
database.ContractKey(bc.NewHash(hash)
))
if bytes == nil {
return nil, fmt.Errorf("can't find CtrlProgram for the SpendInput")
}
if bytes == nil {
return nil, fmt.Errorf("can't find CtrlProgram for the SpendInput")
}