create-lionden 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/templates.js CHANGED
@@ -99,7 +99,7 @@ import pluginTest from "@lionden/plugin-test";
99
99
 
100
100
  export default defineConfig({
101
101
  plugins: [pluginLeo, pluginNetwork, pluginDeploy, pluginTest],
102
- leoVersion: "4.3.2",
102
+ leoVersion: "4.4.2",
103
103
  defaultNetwork: "devnode",
104
104
  networks: {
105
105
  devnode: { type: "devnode", autoBlock: true },
@@ -215,7 +215,7 @@ import pluginTest from "@lionden/plugin-test";
215
215
 
216
216
  export default defineConfig({
217
217
  plugins: [pluginLeo, pluginNetwork, pluginDeploy, pluginTest],
218
- leoVersion: "4.3.2",
218
+ leoVersion: "4.4.2",
219
219
  defaultNetwork: "devnode",
220
220
  networks: {
221
221
  devnode: { type: "devnode", autoBlock: true },
@@ -257,7 +257,7 @@ program token.aleo {
257
257
 
258
258
  /// Transfer public tokens from signer to receiver.
259
259
  fn transfer_public(public receiver: address, public amount: u64) -> Final {
260
- let sender: address = self.signer;
260
+ let sender: address = std::ctx::signer();
261
261
  return final {
262
262
  let sender_balance: u64 = balances.get(sender);
263
263
  assert(sender_balance >= amount);
@@ -329,7 +329,7 @@ describe("token program", () => {
329
329
  // Mint tokens to account-1 (default signer is account-0)
330
330
  await token.mint_public.accepted(account1, 5000n);
331
331
 
332
- // transfer_public reads self.signer to determine the sender.
332
+ // transfer_public reads std::ctx::signer() to determine the sender.
333
333
  // withSigner switches the transaction signer to account-1.
334
334
  await token.withSigner(account1).transfer_public.accepted(receiver, 2000n);
335
335
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lionden",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "repository": {