Questions tagged [truffle]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
25 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
69 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
21 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
18 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: &...