169 похожих чатов

Hello community, I am learning smart contracts development and in

the video course I see that author created a scripts folder and write a scripts for some functions from the contract. First he runs a local node and then run these 2 scripts. I can't understand for what I need to write the scripts if I already wrote deploy scripts and unit+staging tests where I check the whole functionality of the contract ?

7 ответов

11 просмотров

You would need to write tests for each function to make sure it works. Otherwise you can manual test by deploying to testnet You can call functions on the contract using scripts to interact with it

Tony- Автор вопроса
Dipseller Jay
You would need to write tests for each function to...

Yes I already wrote the tests both unit(for local network) and staging(for a testnet). So scripts are mostly used to interact with the contract and check how it works?

Tony
Yes I already wrote the tests both unit(for local ...

That too. I personally prefer using remix for manual testing it’s so much easier

Dipseller Jay
You would need to write tests for each function to...

Manual test is much weaker than a proper test suite

Usually scripts are used to automate stuff, like idk, you might have a csv with a table of user/amount to be given and do an airdrop which issues all the txs for that, or you can write script that react on certain events etc.

Tony- Автор вопроса

Похожие вопросы

Обсуждают сегодня

@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Заметил в ghci 9.4.8: > :t (<*>) @((->)_) (<*>) @((->)_) :: (w -> (a -> b)) -> (w -> a) -> w -> b Разве не должно (w -> (a -> b)) быть записано как (w -> a -> b)? Это баг, ил...
Михаил
13
Привет всем. появился вопрос. Разрабатываю сайт, в данный момент он запущен. Хостинг beget. Добавляю на сайт яндекс метрику с помощью полей client-settings (взято отсюда http...
Andrew
2
Подобного рода ;Следующие три строки это директивы ассемблера, ;которые можно не задавать, т.к.работаем в Visual Studio. ;Символ ";" - это начало однострочного комментария ...
Егор Анелькин
3
Any electron dev here?
Sayanth Tezro
12
Подскажите, где смотреть результат выполнения программы? Код: ;.686 ;Система команд процессора 686 ;.MODEL FLAT,stdcall ;Модель памяти плоская, станда...
Егор Анелькин
5
так это может кто что знает или использует что-то как макбук только не макбук? на 13…14 дюймов
Michael
9
;.686 ;Система команд процессора 686 ;.MODEL FLAT,stdcall ;Модель памяти плоская, стандартный ;вызов процедуры ;option casemap:no...
Егор Анелькин
1
Карта сайта