mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 19:19:44 +00:00
compiler|transaction: remove transaction.GetUnspentCoins support
It's useless. Even though there is Neo.Transaction.GetUnspentCoins syscall that can be used, its return type is an interop structure that's not accepted by any other syscall, so you can't really do anything with it. And there is no such interface for the .net Framework.
This commit is contained in:
parent
514f862b81
commit
a587274351
3 changed files with 7 additions and 20 deletions
|
@ -504,12 +504,6 @@ GetReferences(t Transacfion) interface{}
|
||||||
```
|
```
|
||||||
Returns the references of the given transaction.
|
Returns the references of the given transaction.
|
||||||
|
|
||||||
#### GetUnspentCoins
|
|
||||||
```
|
|
||||||
GetUnspentCoins(t Transacfion) interface{}
|
|
||||||
```
|
|
||||||
Returns the unspent coins of the given transaction.
|
|
||||||
|
|
||||||
#### GetOutputs
|
#### GetOutputs
|
||||||
```
|
```
|
||||||
GetOutputs(t Transacfion) []output.Output
|
GetOutputs(t Transacfion) []output.Output
|
||||||
|
|
|
@ -62,14 +62,13 @@ var syscalls = map[string]map[string]string{
|
||||||
"GetTransaction": "Neo.Block.GetTransaction",
|
"GetTransaction": "Neo.Block.GetTransaction",
|
||||||
},
|
},
|
||||||
"transaction": {
|
"transaction": {
|
||||||
"GetHash": "Neo.Transaction.GetHash",
|
|
||||||
"GetType": "Neo.Transaction.GetType",
|
|
||||||
"GetAttributes": "Neo.Transaction.GetAttributes",
|
"GetAttributes": "Neo.Transaction.GetAttributes",
|
||||||
|
"GetHash": "Neo.Transaction.GetHash",
|
||||||
"GetInputs": "Neo.Transaction.GetInputs",
|
"GetInputs": "Neo.Transaction.GetInputs",
|
||||||
"GetOutputs": "Neo.Transaction.GetOutputs",
|
"GetOutputs": "Neo.Transaction.GetOutputs",
|
||||||
"GetReferences": "Neo.Transaction.GetReferences",
|
"GetReferences": "Neo.Transaction.GetReferences",
|
||||||
"GetUnspentCoins": "Neo.Transaction.GetUnspentCoins",
|
|
||||||
"GetScript": "Neo.InvocationTransaction.GetScript",
|
"GetScript": "Neo.InvocationTransaction.GetScript",
|
||||||
|
"GetType": "Neo.Transaction.GetType",
|
||||||
},
|
},
|
||||||
"asset": {
|
"asset": {
|
||||||
"Create": "Neo.Asset.Create",
|
"Create": "Neo.Asset.Create",
|
||||||
|
|
|
@ -33,12 +33,6 @@ func GetReferences(t Transaction) []interface{} {
|
||||||
return []interface{}{}
|
return []interface{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUnspentCoins returns the unspent coins for the given transaction.
|
|
||||||
// FIXME: What is the correct return type for this?
|
|
||||||
func GetUnspentCoins(t Transaction) interface{} {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetInputs returns the inputs of the given transaction.
|
// GetInputs returns the inputs of the given transaction.
|
||||||
func GetInputs(t Transaction) []input.Input {
|
func GetInputs(t Transaction) []input.Input {
|
||||||
return []input.Input{}
|
return []input.Input{}
|
||||||
|
|
Loading…
Reference in a new issue