(address common.Address)
| 216 | } |
| 217 | |
| 218 | func (this *SmartContract) checkAccountAddress(address common.Address) bool { |
| 219 | addresses, err := this.Config.Tx.GetSignatureAddresses() |
| 220 | if err != nil { |
| 221 | log.Errorf("get signature address error:%v", err) |
| 222 | return false |
| 223 | } |
| 224 | for _, v := range addresses { |
| 225 | if v == address { |
| 226 | return true |
| 227 | } |
| 228 | } |
| 229 | return false |
| 230 | } |
| 231 | |
| 232 | func (this *SmartContract) checkContractAddress(address common.Address) bool { |
| 233 | if this.CallingContext() != nil && this.CallingContext().ContractAddress == address { |
no test coverage detected