mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
core: fix typo in GetTransactionResults()
This commit is contained in:
parent
cffe8d0ee2
commit
ab4ff79e02
1 changed files with 3 additions and 3 deletions
|
@ -835,7 +835,7 @@ func (bc *Blockchain) verifyOutputs(t *transaction.Transaction) bool {
|
|||
}
|
||||
|
||||
func (bc *Blockchain) verifyResults(t *transaction.Transaction) error {
|
||||
results := bc.GetTransationResults(t)
|
||||
results := bc.GetTransactionResults(t)
|
||||
if results == nil {
|
||||
return errors.New("tx has no results")
|
||||
}
|
||||
|
@ -891,9 +891,9 @@ func (bc *Blockchain) verifyResults(t *transaction.Transaction) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// GetTransationResults returns the transaction results aggregate by assetID.
|
||||
// GetTransactionResults returns the transaction results aggregate by assetID.
|
||||
// Golang of GetTransationResults method in C# (https://github.com/neo-project/neo/blob/master/neo/Network/P2P/Payloads/Transaction.cs#L207)
|
||||
func (bc *Blockchain) GetTransationResults(t *transaction.Transaction) []*transaction.Result {
|
||||
func (bc *Blockchain) GetTransactionResults(t *transaction.Transaction) []*transaction.Result {
|
||||
var tempResults []*transaction.Result
|
||||
var results []*transaction.Result
|
||||
tempGroupResult := make(map[util.Uint256]util.Fixed8)
|
||||
|
|
Loading…
Reference in a new issue