*: switch from fixed8 to int64
Follow C# implementation, we have to marshall JSON Fixed8 fields without taking into account decimals.
This commit is contained in:
parent
8ad355b444
commit
73b630db9b
35 changed files with 146 additions and 155 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
"github.com/nspcc-dev/neo-go/pkg/config/netmode"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/block"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/native"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/storage"
|
||||
"github.com/nspcc-dev/neo-go/pkg/io"
|
||||
"github.com/nspcc-dev/neo-go/pkg/network"
|
||||
|
@ -85,10 +86,10 @@ func initServerWithInMemoryChain(t *testing.T) (*core.Blockchain, *Server, *http
|
|||
|
||||
type FeerStub struct{}
|
||||
|
||||
func (fs *FeerStub) FeePerByte() util.Fixed8 {
|
||||
func (fs *FeerStub) FeePerByte() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (fs *FeerStub) GetUtilityTokenBalance(acc util.Uint160) util.Fixed8 {
|
||||
return util.Fixed8FromInt64(1000000)
|
||||
func (fs *FeerStub) GetUtilityTokenBalance(acc util.Uint160) int64 {
|
||||
return 1000000 * native.GASFactor
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue