compiler: use CALLT for native contract calls, fix #2257
This commit is contained in:
parent
06fc450789
commit
299a7ea614
26 changed files with 322 additions and 190 deletions
|
@ -308,9 +308,9 @@ func TestJumpOptimize(t *testing.T) {
|
|||
for _, mi := range di.Methods {
|
||||
// only _deploy and init have locals here
|
||||
if mi.Name.Name == "_deploy" || mi.Name.Name == "init" {
|
||||
require.Equal(t, b[mi.Range.Start], byte(opcode.INITSLOT))
|
||||
require.Equal(t, b.Script[mi.Range.Start], byte(opcode.INITSLOT))
|
||||
}
|
||||
require.Equal(t, b[mi.Range.End], byte(opcode.RET))
|
||||
require.Equal(t, b.Script[mi.Range.End], byte(opcode.RET))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue