-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check collisions of method ids with reserved ones not only for e…
…xplicitly specified ones (#1052) Namely: - `supported_interfaces` - `lazy_deployment_completed` - `get_abi_ipfs`
- Loading branch information
Showing
9 changed files
with
177 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/types/stmts-failed/getter-collision-with-reserved1.tact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
primitive String; | ||
|
||
trait BaseTrait { } | ||
|
||
contract TestContract { | ||
get fun getter1() { | ||
return; | ||
} | ||
|
||
get fun lazy_deployment_completed(): String{ | ||
return "not ok"; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/types/stmts-failed/getter-collision-with-reserved2.tact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
primitive Int; | ||
|
||
trait BaseTrait { } | ||
|
||
contract TestContract { | ||
get fun getter1() { | ||
return; | ||
} | ||
|
||
get fun get_abi_ipfs(): Int{ | ||
return 123; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/types/stmts-failed/getter-collision-with-reserved3.tact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
primitive String; | ||
|
||
trait BaseTrait { } | ||
|
||
contract TestContract { | ||
get fun getter1() { | ||
return; | ||
} | ||
|
||
get fun supported_interfaces(): String{ | ||
return "ok"; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/types/stmts-failed/getter-collision-with-reserved_opt1.tact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
primitive String; | ||
|
||
trait BaseTrait { } | ||
|
||
contract TestContract { | ||
get fun getter1() { | ||
return; | ||
} | ||
|
||
get(115390) fun _lazy_deployment_completed(): String{ | ||
return "not ok"; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/types/stmts-failed/getter-collision-with-reserved_opt2.tact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
primitive Int; | ||
|
||
trait BaseTrait { } | ||
|
||
contract TestContract { | ||
get fun getter1() { | ||
return; | ||
} | ||
|
||
get(121275) fun _get_abi_ipfs(): Int{ | ||
return 123; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/types/stmts-failed/getter-collision-with-reserved_opt3.tact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
primitive String; | ||
|
||
trait BaseTrait { } | ||
|
||
contract TestContract { | ||
get fun getter1() { | ||
return; | ||
} | ||
|
||
get(113617) fun _supported_interfaces(): String{ | ||
return "ok"; | ||
} | ||
} |