Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2311d19602 | |||
| 2a78189f31 | |||
| 4504fb8dcf | |||
| 8798e0b2c9 | |||
| 1dfc349065 |
@@ -219,6 +219,7 @@ Without the `stateful` annotation the compiler does not allow the call to
|
|||||||
- `AENS.claim`
|
- `AENS.claim`
|
||||||
- `AENS.transfer`
|
- `AENS.transfer`
|
||||||
- `AENS.revoke`
|
- `AENS.revoke`
|
||||||
|
- `AENS.update`
|
||||||
* Call a `stateful` function in the current contract
|
* Call a `stateful` function in the current contract
|
||||||
* Call another contract with a non-zero `value` argument.
|
* Call another contract with a non-zero `value` argument.
|
||||||
|
|
||||||
@@ -725,6 +726,9 @@ name:
|
|||||||
AENS.update(addr, name, None, None, Some(ptrs), signature = sig)
|
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
|
### Events
|
||||||
|
|
||||||
|
|||||||
@@ -832,7 +832,12 @@ expose_internals(Defs, What) ->
|
|||||||
main_contract -> [{entrypoint, true}|Ann]; % minor duplication
|
main_contract -> [{entrypoint, true}|Ann]; % minor duplication
|
||||||
contract -> Ann
|
contract -> Ann
|
||||||
end,
|
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
|
end
|
||||||
|| Def <- Defs
|
|| Def <- Defs
|
||||||
].
|
].
|
||||||
|
|||||||
Reference in New Issue
Block a user