Questions tagged [truffle]
The truffle tag has no usage guidance.
11
questions
1
vote
2
answers
21
views
Truffle is not working for compiling and deploying
Is anybody here still using Truffle in order to compile and deploy Tezos projects? I created a project with it over a year ago and wanted to update the environment. After dowloading the latest Ligo ...
0
votes
1
answer
180
views
proto.007-PsDELPH1.storage_exhausted.operation when originating contract (storage_limit is set)
I am trying to deploy a contract to delphinet with truffle.
On a local sandbox the contract deploys just fine, but for the deployment on Delphi I am getting:
proto.007-PsDELPH1.storage_exhausted....
0
votes
1
answer
61
views
Manipulation of Tezos.amount and test cleanup storage
I am about to write some tests to verify some method functionality.
The method functionality is quite simple:
function checkAmount(const store : storage) : storage is
block{
if Tezos.amount <= ...
0
votes
1
answer
86
views
"Invalid bytes error" on migration of PascalLigo contract
I am trying to write tests for my contract, which stores an user as follows:
type userData is record [
addressSet : set(bytes);
storedAmount : tez;
]
My storage is a big_map as ...
2
votes
2
answers
128
views
Passing parameters in truffle tests
I have this parameter for a function:
type modify_list is
| Add of list(address)
| Remove of list(address)
type modify_list_michelson is michelson_or_right_comb(modify_list)
When I try to supply ...
1
vote
0
answers
16
views
How to transfer tez with a truffle instance of a contract
I have a method test that takes an integer as input. I would like to call it and send tez with the transaction/function call. What is the syntax for doing that in JavaScript?
1
vote
1
answer
33
views
Call method taking timestamp as parameter from JavaScript
I have a Truffle instance of the contract and I call the method like this
contract_instance.test(1);
Where test in a function that takes a timestamp as parameter.
This gives me this error message:
...
2
votes
1
answer
71
views
Get number of entries in bigmap
I am currently writing tests for a contract and for one of those tests, I would like to get the number of entries in a bigmap field of the contract's storage. I am using JavaScript with Taquito and ...
3
votes
1
answer
182
views
How do I call the FA2 balance_of endpoint through Truffle?
I have written a contract to implement FA2 and I have a Truffle/JavaScript setup to test this contract while running against a sandboxed node. I can test the transfer endpoint and the update_operators ...
3
votes
1
answer
44
views
Call method taking unit type as parameter from JavaScript
I have a Truffle instance of the contract and I call the method like this
contract_instance.method();
This gives me this error message:
method Received 0 arguments while expecting on of the follow ...
1
vote
1
answer
42
views
How do I change the originating address in truffle?
My truffle-config.js has
const { alice } = require('./scripts/sandbox/accounts');
module.exports = {
contracts_directory: "./contracts/main",
networks: {
development: {
host: &...