Questions tagged [truffle]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Truffle `migrate` lost origination on Delphinet

Is there some trick to deploying contracts to Delphinet using Truffle? I'm using stove-labs/tezos-starter-kit and attempting to deploy to Delphinet using this command: npm run migrate -- --network ...
0
votes
0answers
10 views

How to open an interactive console with a deployed contract in `stove-labs/tezos-starter-kit`

Does anyone know how to start an interactive console in the stove-labs/tezos-starter-kit framework, so one can interact with contracts? See this issue. Truffle's documentation claims it's possible, ...
0
votes
1answer
90 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
1answer
40 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
1answer
60 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
2answers
85 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
15 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
1answer
25 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
41 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
105 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
1answer
36 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
31 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: &...