Compile and Deploy smart contract in local testnet

Hi @Paulinareally enjoyed reading your article! Will this work for any type of move script (like token implementation) or just transactional scripts?

1 Like

Hi @alonshavit, it works for transaction scripts but there is still a problem to deploy Move modules. We are using transaction_builder and i did’t find a way to use it for modules
At GitHub we can read that the the CLI tools don’t currently have a way craft a module deployment transaction

1 Like

Thank you so much @Paulina for the elaborated answer! i guess we will have to wait a bit… this kind of information is very valuable for our community at www.libracamp.com and i would love to see you take part in it!

3 Likes

submit/submitb commands not working anymore.

1 Like

@kldpsahu , even i used “dev publish <path_to_raw_transaction>” getting the below error while following the below link ,
Link :“https://medium.com/featly/how-to-compile-and-deploy-move-transaction-script-on-libra-local-network-4b03e0ff5cbd

even though i am getting the issue as below :–
4. Building transaction

 transaction_builder <sender> <sequence_number> <program> <output> --args <payee> <amount>

ubuntu@ip-172-31-7-79:~/libra$ ./target/debug/transaction_builder 225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff 0 ./test/out.program out.txn --args 0x375d048ab6ba861852f44b45c6e7554c5d2e4998ceaa0638cbcbd89d506fbed8 10 – Successful
5. Sending transaction
submitb <path_to_raw_transaction>

libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff out.txn
invalid escape at line 2 column 10 ----- error message
libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff /home/ubuntu/libra/out.txn
invalid escape at line 2 column 10 ---- error message

Can u help me regarding this please ?
we can reach on 9538905728 for more detail information.

Regards,
Rakesh kumar Jha

2 Likes

Have you checked escape at line 2 column 10?
That is what the error message says.

“invalid escape at line 2 column 10 ---- error message”

Donation here( : 0x21c51f0616eA4Ead04E37697B14C03eAd85d0E1C)

2 Likes

@tommyyama2020 ,
I have checked and seems not have space as well as this file is generated by default .
I am not manipulate this " /home/ubuntu/libra/out.txn" manually .
It’s generated by above command for “building Transaction” as below :–
transaction_builder <sequence_number> --args
ubuntu@ip-172-31-7-79:~/libra$ ./target/debug/transaction_builder 225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff 0 ./test/out.program out.txn --args 0x375d048ab6ba861852f44b45c6e7554c5d2e4998ceaa0638cbcbd89d506fbed8 10

Regards,
Rakesh kumar Jha

2 Likes

good to know Rakesh.

1 Like

I guest this is it ^^

2 Likes