Skip to content

Commit 0e04239

Browse files
emera1dVeserion
authored andcommitted
IDE-660 Ride template. STDLIB_VERSION 4 > 5 (#385)
1 parent 94dbf4f commit 0e04239

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

src/components/NewFileBtn/index.tsx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,19 @@ interface IInjectedProps {
1212

1313
export const menuItems = {
1414
'Account script': {
15-
icon: 'accountdocIcn', content: '{-# STDLIB_VERSION 4 #-}\n' +
15+
icon: 'accountdocIcn', content: '{-# STDLIB_VERSION 5 #-}\n' +
1616
'{-# CONTENT_TYPE EXPRESSION #-}\n' +
1717
'{-# SCRIPT_TYPE ACCOUNT #-}\n\n' +
1818
'sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)'
1919
},
2020
'Asset script': {
21-
icon: 'assetdocIcn', content: '{-# STDLIB_VERSION 4 #-}\n' +
21+
icon: 'assetdocIcn', content: '{-# STDLIB_VERSION 5 #-}\n' +
2222
'{-# CONTENT_TYPE EXPRESSION #-}\n' +
2323
'{-# SCRIPT_TYPE ASSET #-}\n\n' +
2424
'true'
2525
},
2626
'dApp script': {
27-
icon: 'dappdocIcn', content: `
28-
{-# STDLIB_VERSION 4 #-}
27+
icon: 'dappdocIcn', content: `{-# STDLIB_VERSION 5 #-}
2928
{-# CONTENT_TYPE DAPP #-}
3029
{-# SCRIPT_TYPE ACCOUNT #-}
3130
@@ -52,16 +51,6 @@ func call() = {
5251
@Verifier(tx)
5352
func verify() = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5453
`
55-
// '{-# STDLIB_VERSION 4 #-}\n' +
56-
// '{-# CONTENT_TYPE DAPP #-}\n' +
57-
// '{-# SCRIPT_TYPE ACCOUNT #-}\n\n' +
58-
// '@Callable(i)\n' +
59-
// 'func foo() = {\n' +
60-
// ' WriteSet([])\n' +
61-
// '}\n' +
62-
// '\n' +
63-
// '# @Verifier(tx)\n' +
64-
// '# func standardVerifier() = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)'
6554
},
6655
//todo uncomment when imports are supported
6756
// 'Library': {

src/services/HotKeysService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class HotKeysService {
8585

8686
private createNewFile = (e: ExtendedKeyboardEvent) => {
8787
this.stopPropagation(e);
88-
const content = '{-# STDLIB_VERSION 4 #-}\n' +
88+
const content = '{-# STDLIB_VERSION 5 #-}\n' +
8989
'{-# CONTENT_TYPE DAPP #-}\n' +
9090
'{-# SCRIPT_TYPE ACCOUNT #-}';
9191
this.rootStore!.filesStore.createFile({type: FILE_TYPE.RIDE, content}, true);

0 commit comments

Comments
 (0)