25 lines
327 B
Go
25 lines
327 B
Go
package mt
|
|
|
|
import (
|
|
"f5"
|
|
"mtb"
|
|
"sync"
|
|
"strings"
|
|
)
|
|
|
|
type Contract struct {
|
|
mtb.Contract
|
|
}
|
|
|
|
type ContractTable struct {
|
|
f5.NameMetaTable[Contract]
|
|
itemHash sync.Map //string => Contract
|
|
}
|
|
|
|
func (this *Contract) Init1() {
|
|
}
|
|
|
|
func (this *Contract) GetContractAddress() string {
|
|
return strings.ToLower(this.GetAddress())
|
|
}
|