mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-03-14 23:10:20 +00:00
vm: drop Dump*Slot methods from Context
As scheduled for the 0.108.0 release. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
a1db45d668
commit
30b3318503
2 changed files with 0 additions and 37 deletions
|
@ -24,12 +24,3 @@ APIs/commands/configurations will be removed and here is a list of scheduled
|
|||
breaking changes. Consider changing your code/scripts/configurations if you're
|
||||
using anything mentioned here.
|
||||
|
||||
## Dump*Slot() methods of `vm.Context`
|
||||
|
||||
The following new methods have been exposed to give access to VM context slot contents
|
||||
with greater flexibility:
|
||||
- `ArgumentsSlot`
|
||||
- `LocalsSlot`
|
||||
- `StaticsSlot`.
|
||||
|
||||
Removal of the `Dump*Slot()` methods are scheduled for the 0.108.0 release.
|
||||
|
|
|
@ -277,34 +277,6 @@ func (c *Context) IsDeployed() bool {
|
|||
return c.sc.NEF != nil
|
||||
}
|
||||
|
||||
// DumpStaticSlot returns json formatted representation of the given slot.
|
||||
// Deprecated: to be removed in next version. Use [Context.StaticsSlot] instead.
|
||||
func (c *Context) DumpStaticSlot() string {
|
||||
return dumpSlot(&c.sc.static)
|
||||
}
|
||||
|
||||
// DumpLocalSlot returns json formatted representation of the given slot.
|
||||
// Deprecated: to be removed in next version. Use [Context.LocalsSlot] instead.
|
||||
func (c *Context) DumpLocalSlot() string {
|
||||
return dumpSlot(&c.local)
|
||||
}
|
||||
|
||||
// DumpArgumentsSlot returns json formatted representation of the given slot.
|
||||
// Deprecated: to be removed in next version. Use [Context.ArgumentsSlot] instead.
|
||||
func (c *Context) DumpArgumentsSlot() string {
|
||||
return dumpSlot(&c.arguments)
|
||||
}
|
||||
|
||||
// dumpSlot returns json formatted representation of the given slot.
|
||||
// Deprecated: to be removed in next version.
|
||||
func dumpSlot(s *Slot) string {
|
||||
if s == nil || *s == nil {
|
||||
return "[]"
|
||||
}
|
||||
b, _ := json.MarshalIndent(s, "", " ")
|
||||
return string(b)
|
||||
}
|
||||
|
||||
// getContextScriptHash returns script hash of the invocation stack element
|
||||
// number n.
|
||||
func (v *VM) getContextScriptHash(n int) util.Uint160 {
|
||||
|
|
Loading…
Add table
Reference in a new issue