Skip to content

Commit f90e119

Browse files
author
Tore Kasper Frederiksen
committed
Changed from struct to string[]
1 parent 35e0bc1 commit f90e119

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

ERCs/ERC5XX0 draft.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,21 @@ With these variables in mind we can describe the life cycle of the `scriptURI` f
7979
### Specification
8080
The keywords “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY” and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.
8181

82-
We define a scriptURI element using the following structs:
83-
84-
```
85-
struct scriptURI {
86-
string[] URIOfScript;
87-
}
88-
```
89-
90-
Based on these elements we define the smart contract interface below:
82+
We define a scriptURI element using the `string[]`.
83+
Based on this we define the smart contract interface below:
9184
```
9285
interface IERC5XX0 {
9386
/// @dev This event emits when the scriptURI is updated,
9487
/// so wallets implementing this interface can update a cached script
95-
event ScriptUpdate(scriptURI memory newScriptURI);
88+
event ScriptUpdate(string[] memory newScriptURI);
9689
9790
/// @notice Get the scriptURI for the contract
9891
/// @return The scriptURI
99-
function scriptURI() external view returns(scriptURI memory);
92+
function scriptURI() external view returns(string[] memory);
10093
10194
/// @notice Update the scriptURI
10295
/// emits event ScriptUpdate(scriptURI memory newScriptURI);
103-
function setScriptURI(scriptURI memory newScriptURI, bytes memory newSigScriptURI) external;
96+
function setScriptURI(string[] memory newScriptURI, bytes memory newSigScriptURI) external;
10497
}
10598
```
10699
The interface MUST be implemented under the following constraints:

0 commit comments

Comments
 (0)