Skip to content

Commit 7e32fc5

Browse files
committed
fix DMM errors
1 parent ec0f503 commit 7e32fc5

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

examples/erc20/DeFiMoneyMarket/mDAI.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<!ENTITY enable.en SYSTEM "enable.en.js">
77
]>
88
<ts:token xmlns:ts="http://tokenscript.org/2020/06/tokenscript"
9-
xmlns="http://www.w3.org/1999/xhtml"
9+
xmlns:ethereum="urn:ethereum:constantinople"
10+
xmlns:xhtml="http://www.w3.org/1999/xhtml"
1011
xmlns:xml="http://www.w3.org/XML/1998/namespace"
1112
xsi:schemaLocation="http://tokenscript.org/2020/06/tokenscript http://tokenscript.org/2020/06/tokenscript.xsd"
1213
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -157,8 +158,8 @@
157158
<ts:string xml:lang="en">Token Decimals</ts:string>
158159
</ts:label>
159160
<ts:origins>
160-
<ts:ethereum function="decimals" contract="mDAI" as="uint">
161-
</ts:ethereum>
161+
<ethereum:call function="decimals" contract="mDAI" as="uint">
162+
</ethereum:call>
162163
</ts:origins>
163164
</ts:attribute-type>
164165

examples/erc20/DeFiMoneyMarket/mETH.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<!ENTITY enable.en SYSTEM "enable.en.js">
77
]>
88
<ts:token xmlns:ts="http://tokenscript.org/2020/06/tokenscript"
9-
xmlns="http://www.w3.org/1999/xhtml"
9+
xmlns:ethereum="urn:ethereum:constantinople"
10+
xmlns:xhtml="http://www.w3.org/1999/xhtml"
1011
xmlns:xml="http://www.w3.org/XML/1998/namespace"
1112
xsi:schemaLocation="http://tokenscript.org/2020/06/tokenscript http://tokenscript.org/2020/06/tokenscript.xsd"
1213
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -42,7 +43,7 @@
4243
</ts:attribute-type>
4344
<ts:transaction>
4445
<ethereum:call function="mintViaEther" contract="mETH" as="uint">
45-
<ts:value ref="mintAmount"/>
46+
<ethereum:ether ref="mintAmount"/>
4647
</ethereum:call>
4748
</ts:transaction>
4849
<ts:view xml:lang="en">
@@ -112,8 +113,8 @@
112113
<ts:string xml:lang="en">Exchange Rate</ts:string>
113114
</ts:label>
114115
<ts:origins>
115-
<ts:ethereum function="getCurrentExchangeRate" contract="mETH" as="uint">
116-
</ts:ethereum>
116+
<ethereum:call function="getCurrentExchangeRate" contract="mETH" as="uint">
117+
</ethereum:call>
117118
</ts:origins>
118119
</ts:attribute-type>
119120

examples/erc20/DeFiMoneyMarket/mUSDC.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<!ENTITY enable.en SYSTEM "enable.en.js">
77
]>
88
<ts:token xmlns:ts="http://tokenscript.org/2020/06/tokenscript"
9-
xmlns="http://www.w3.org/1999/xhtml"
9+
xmlns:ethereum="urn:ethereum:constantinople"
10+
xmlns:xhtml="http://www.w3.org/1999/xhtml"
1011
xmlns:xml="http://www.w3.org/XML/1998/namespace"
1112
xsi:schemaLocation="http://tokenscript.org/2020/06/tokenscript http://tokenscript.org/2020/06/tokenscript.xsd"
1213
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

0 commit comments

Comments
 (0)