Start reading available attributes from ABI

This commit is contained in:
Eric Meyer
2017-11-28 09:41:23 -06:00
parent 708ad114ac
commit 60bef69113
9 changed files with 117 additions and 7 deletions
+4
View File
@@ -9,6 +9,10 @@ type Blockchain struct {
WasToldToStop bool
}
func (blockchain *Blockchain) GetContractAttributes(contractHash string) ([]core.ContractAttribute, error) {
panic("implement me")
}
func (blockchain *Blockchain) GetContractStateAttribute(contractHash string, attributeName string) (*string, error) {
result := new(string)
*result = blockchain.contractAttributes[contractHash][attributeName]