• R/O
  • HTTP
  • SSH
  • HTTPS

equity: 提交

Based on BUTXO Programming Language


Commit MetaInfo

修订版71069d521cfd1eb296e86453f5deaf87516e8a28 (tree)
时间2018-10-25 18:05:10
作者oysheng <33340252+oysheng@user...>
CommiterPaladz

Log Message

fix contract exceptd check (#22)

更改概述

差异

--- a/compiler/parse.go
+++ b/compiler/parse.go
@@ -48,6 +48,10 @@ func parse(buf []byte) (contracts []*Contract, err error) {
4848
4949 func parseContracts(p *parser) []*Contract {
5050 var result []*Contract
51+ if pos := scanKeyword(p.buf, p.pos, "contract"); pos < 0 {
52+ p.errorf("expected contract")
53+ }
54+
5155 for peekKeyword(p) == "contract" {
5256 contract := parseContract(p)
5357 result = append(result, contract)
Show on old repository browser