forked from TrueCloudLab/frostfs-node
There are problems with that code:
- explicit casts,
- `ErrConfigNotFound` which is not a part of a public API,
- hand-rolled assertions, even though neo-go already has everything we
need.
So, remove the error, use `stackitem/Item.Try*()` methods for
conversions. Note, that readUint64Config() returns an error if the
parameter is missing. This is likely an error, but this behaviour is
preserved in this PR: `TryInteger()` returns error when applied to
`Null`. By contract, `TryBool()` returns false for `Null`, so this
PR introduces no functional changes.
Refs
|
||
---|---|---|
.. | ||
balance | ||
container | ||
frostfs | ||
frostfsid | ||
netmap | ||
actor.go | ||
client.go | ||
constructor.go | ||
mtls.go | ||
multi.go | ||
multy_test.go | ||
nns.go | ||
notary.go | ||
notifications.go | ||
static.go | ||
util.go | ||
util_test.go | ||
waiter.go |