Compare commits

..

5 Commits

Author SHA1 Message Date
Hans Svensson 2311d19602 Merge pull request #291 from aeternity/GH-3282-aens_pointers_cleanup
Add note about legacy (Lima) AENS pointers in update/lookup
2021-04-15 10:26:56 +02:00
Hans Svensson 2a78189f31 Add note about legacy (Lima) AENS pointers in update/lookup 2021-01-07 12:14:04 +01:00
Radosław Rowicki 4504fb8dcf Merge pull request #286 from aeternity/expose-interface-fix
Fix interface exposure (master)
2020-10-21 14:00:48 +02:00
radrow 8798e0b2c9 Fix interface exposure 2020-10-21 12:40:13 +02:00
Radosław Rowicki 1dfc349065 Merge pull request #285 from aeternity/lima-master-merge
Lima master merge
2020-10-15 19:50:48 +02:00
2 changed files with 10 additions and 1 deletions
+4
View File
@@ -219,6 +219,7 @@ Without the `stateful` annotation the compiler does not allow the call to
- `AENS.claim`
- `AENS.transfer`
- `AENS.revoke`
- `AENS.update`
* Call a `stateful` function in the current contract
* Call another contract with a non-zero `value` argument.
@@ -725,6 +726,9 @@ name:
AENS.update(addr, name, None, None, Some(ptrs), signature = sig)
```
*Note:* From the Iris hardfork more strict rules apply for AENS pointers, when
a Sophia contract lookup or update (bad) legacy pointers, the bad keys are
automatically removed so they will not appear in the pointers map.
### Events
+6 -1
View File
@@ -832,7 +832,12 @@ expose_internals(Defs, What) ->
main_contract -> [{entrypoint, true}|Ann]; % minor duplication
contract -> Ann
end,
setelement(2, Def, NewAnn)
Def1 = setelement(2, Def, NewAnn),
case Def1 of % fix inner clauses
{fun_clauses, Ans, Id, T, Clauses} ->
{fun_clauses, Ans, Id, T, expose_internals(Clauses, What)};
_ -> Def1
end
end
|| Def <- Defs
].