Questions tagged [truffle]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
12 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
0answers
10 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?
0
votes
1answer
15 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
1answer
30 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
1answer
73 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 ...
2
votes
1answer
26 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
1answer
22 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: &...