stack height parse of enterEntract

This commit is contained in:
thloyi
2025-12-31 16:53:39 +08:00
parent 78d323efd5
commit dbfaa39432
8 changed files with 84 additions and 34 deletions

8
tx.go
View File

@@ -174,3 +174,11 @@ func (s Swap) CheckEntryContract() string {
}
return EntryContractUnknown
}
func (s Swap) CheckEntryContractV2() string {
name, ok := entryContractAddresses[s.EntryContract]
if ok {
return name
}
return s.EntryContract.String()
}