Questions tagged [pact-lang]

Pact is a language for developing smart contracts to run on a fast deterministic blockchain.

71 questions
1
vote
1 answer

Pact ToDo MVC - No handler accepted "/" Message in Browser

After launching, https://github.com/kadena-io/pact-todomvc in the browser I get the error No handler accepted "/" . I've tried toggling the server.conf file to both localhost:9000 and 8080. Is there something else I need to config? I've followed the…
mleafer
  • 825
  • 2
  • 7
  • 15
0
votes
1 answer

Kadena Pact Create Account Fails

Hi Kadena Pact developers, I'm following https://docs.kadena.io/build/frontend/pact-lang-api-cookbook#create-account to create coin accounts. getBalance(`sender00`) returns { "gas": 20, "result": { "status": "success", "data":…
att
  • 617
  • 8
  • 17
0
votes
1 answer

Error: : Failure: Tx Failed: Keyset failure (keys-all): 'todo-admin-keyset' while deploying on Kadena Testnet

The yaml deployment file is as under: codeFile: pact/todos.pact networkId: testnet04 publicMeta: chainId: "1" gasLimit: 1000 ttl: 28000 creationTime: sender: "nambi001" gasPrice: 0.00001 data: todo-admin-keyset:…
0
votes
1 answer

Inheritance approach in PACT

I want to create a set of coins implementing fungible-v2 and a set of internal features. My approach has been to create an interface mytoken and to implement both mytoken and fungible-v2 in mytoken1. I have also created a table for account balance…
datoga
  • 103
  • 8
0
votes
1 answer

Sale cannot be executed in Kadena Pact Marmalde

Errors occur in the following conditions. Running on local server (ubuntu on windows). I deployed these files. Token is minted. The yaml file is generated via Django. The generated file is then used to run the API request formatter to generate…
0
votes
3 answers

How do I select for a row using multiple clauses in PACT smart contract language

The PACT documentation clearly states how to select for a single condition in the where clause, but it is not so clear on how to select for multiple clauses which seems much more general and important for real world use cases than a single clause…
KDAbet
  • 29
  • 3
0
votes
2 answers

Can managed capabilities be installed with (install-capability) outside the module in which they are defined?

Is it possible to install a managed capability outside the module it was defined, without signing the capability in the transaction data? For example, I would like to use the coin.transfer-create function within a function implemented in my module…
trh
  • 171
  • 6
0
votes
1 answer

I got this error while deploying on Kadena mainnet

Error HTTP response (Status {statusCode = 400, statusMessage = ""}):"Validation failed for hash "-bcsjpIuk6BpfuynRHeQsXRvxYP7BtizDeeZVt-8e44": Attempt to buy gas failed with: : Failure: Tx Failed: Account name does not conform to the min length…
Oprahjosh
  • 7
  • 1
0
votes
1 answer

How can I call a pact module on chain using passed in module+defun name

I have a contract that is able to call another module on chain from within itself, and it is working as follows: (defun call-other(nft-id) (mod-2.defun-name ...params) I am trying to do it dynamically by passing module name of "mod-2" to the…
-1
votes
2 answers

How do I generate Psuedo-random numbers in pact. Why does now() or rand() violate PACT's core principles?

When writing a bar dice game on PACT for a tutorial, I needed to roll a series of dice in rapid succession. After noticing no RAND() capability or NOW() capability I was stuck because my .repl and .pact files were not yet sent to test-net. …
KDAbet
  • 29
  • 3
-2
votes
1 answer

Can I create Flash Loan with Pact language?

I'm trying to develop a flashloan with Pact. I can do this with solidity but I'm searching for a precise resource that can help me out using pact.
Oprahjosh
  • 7
  • 1
1 2 3 4
5