Repository: ecadlabs/taquito
Pull request #1022 (2021-08-16 19:25:10)

update contract-schema example to grenadanet
update contract-schema example to granadanet

#1013 



Patch:
diff --git a/docs/rpc_nodes.md b/docs/rpc_nodes.md
index 1ab022080..5a6d6b668 100644
--- a/docs/rpc_nodes.md
+++ b/docs/rpc_nodes.md
@@ -15,19 +15,19 @@ author: Roxane Letourneau
 
 *If you are aware of a public node missing from our list or our information is inaccurate, please help us by submitting an issue or pull request on our GitHub page.*
 
+- ECAD Labs nodes:
+    - Mainnet: https://mainnet.api.tez.ie
+    - Granadanet: https://granadanet.api.tez.ie
+    - Florencenet: https://florencenet.api.tez.ie
 - Tezos Giga Node from Tezos Ukraine
     - Mainnet: https://mainnet-tezos.giganode.io
-    - Edo testnet: https://edonet-tezos.giganode.io
+    - Granada testnet: https://testnet-tezos.giganode.io
 - SmartPy nodes
     - Mainnet: https://mainnet.smartpy.io
-    - Edonet: https://edonet.smartpy.io/
+    - Granadanet: https://granadanet.smartpy.io/
 - Nodes operated by Blockscale on behalf of the Tezos Foundation: 
     - Mainnet: https://rpc.tzbeta.net/
-    - Next protocol/version testnet (Edonet): https://rpczero.tzbeta.net/
-- ECAD Labs nodes:
-    - Mainnet: https://api.tez.ie/rpc/mainnet
-    - Edonet: https://api.tez.ie/rpc/edonet (edo2net / Chainid is `NetXSgo1ZT2DRUG`)
-    - Florencenet: https://api.tez.ie/rpc/florencenet
+    - Next protocol/version testnet (Granadanet): https://rpczero.tzbeta.net/
 - Teznode from LetzBake!:
     - Mainnet: https://teznode.letzbake.com
 
diff --git a/example/contract-schema.ts b/example/contract-schema.ts
index 5705aaa1c..40b5d36f6 100644
--- a/example/contract-schema.ts
+++ b/example/contract-schema.ts
@@ -3,17 +3,17 @@ import { InMemorySigner } from '@taquito/signer';
 
 
 async function example() {
-    const provider = 'https://api.tez.ie/rpc/florencenet';
+    const provider = 'https://api.tez.ie/rpc/granadanet';
     const signer: any = new InMemorySigner('edskRtmEwZxRzwd1obV9pJzAoLoxXFWTSHbgqpDBRHx1Ktzo5yVuJ37e2R4nzjLnNbxFU4UiBU1iHzAy52pK5YBRpaFwLbByca');
     const tezos = new TezosToolkit(provider);
     tezos.setSignerProvider( signer );
     try {
-        const contract = await tezos.contract.at('KT1SwtWpUE1TpBF8c4T1c2NsaDGgjKv3Xwy7');
+        const contract = await tezos.contract.at('KT1KN8SMLK1Gvz2NSFDQyZmcTC5Vsed9RRDt');
         console.log("Printing contract methods...");
         console.log(contract.methods);
         console.log("Showing initial storage...");
         console.log(await contract.storage())
-        const op = await contract.methods.mint("tz1bwsEWCwSEXdRvnJxvegQZKeX5dj6oKEys", 100).send({ fee: 30000, gasLimit: 200000 })
+        const op = await contract.methods.mint("tz2GFmGv5iWy4wYLPxJ3BbL377t2QsLPCGp8", 100).send()
         console.log('Awaiting confirmation...');
         await op.confirmation();
         console.log(op.hash, op.includedInBlock);
diff --git a/packages/taquito-tzip16/src/tzip16-errors.ts b/packages/taquito-tzip16/src/tzip16-errors.ts
index 6090c5a40..8ee3ab93b 100644
--- a/packages/taquito-tzip16/src/tzip16-errors.ts
+++ b/packages/taquito-tzip16/src/tzip16-errors.ts
@@ -60,7 +60,7 @@ export class ForbiddenInstructionInViewCode implements Error {
     message: string;
 
     constructor(public instruction: string) {
-        this.message = `Erreur found in the code of the view. It contains a forbidden instruction: ${instruction}.`;
+        this.message = `Error found in the code of the view. It contains a forbidden instruction: ${instruction}.`;
     }
 }
 
@@ -78,4 +78,4 @@ export class InvalidViewParameterError implements Error {
     constructor(public viewName: string, public sigs: any[], public args: any[]) {
         this.message = `${viewName} Received ${args.length} arguments while expecting one of the following signatures (${JSON.stringify(sigs)})`;
     }
-}
\ No newline at end of file
+}


Test patch:
diff --git a/packages/taquito-tzip16/test/viewKind/michelson-storage-view.spec.ts b/packages/taquito-tzip16/test/viewKind/michelson-storage-view.spec.ts
index b8307d9a8..7f7ed6402 100644
--- a/packages/taquito-tzip16/test/viewKind/michelson-storage-view.spec.ts
+++ b/packages/taquito-tzip16/test/viewKind/michelson-storage-view.spec.ts
@@ -52,7 +52,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: AMOUNT.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: AMOUNT.')
 		}
 		done();
 	});
@@ -73,7 +73,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: CREATE_CONTRACT.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: CREATE_CONTRACT.')
 		}
 		done();
 	});
@@ -94,7 +94,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: SENDER.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: SENDER.')
 		}
 		done();
 	});
@@ -114,7 +114,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: SET_DELEGATE.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: SET_DELEGATE.')
 		}
 		done();
 	});
@@ -134,7 +134,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: SOURCE.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: SOURCE.')
 		}
 		done();
 	});
@@ -154,7 +154,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: TRANSFER_TOKENS.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: TRANSFER_TOKENS.')
 		}
 		done();
 	});
@@ -174,7 +174,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: TRANSFER_TOKENS.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: TRANSFER_TOKENS.')
 		}
 		done();
 	});
@@ -195,7 +195,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: the instruction SELF should only be used before ADDRESS.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: the instruction SELF should only be used before ADDRESS.')
 		}
 		done();
 	});
@@ -216,7 +216,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: the instruction SELF should only be used before ADDRESS.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: the instruction SELF should only be used before ADDRESS.')
 		}
 		done();
 	});