478 questions
Best practices
0
votes
0
replies
101
views
.NET Messaging CDC - Monitoring
I have a question about messaging in our system. We have three services: Order, Cart, and Monitoring. We usually work with communication in such a way that each project has its own contracts, and ...
Best practices
1
vote
3
replies
117
views
.NET - Messaging - Where to place shared contracts
I have a question about sharing contracts between services using a message broker (more specifically, Azure Service Bus). I searched for it in various articles and asked a chatbot, but I didn't get a ...
0
votes
1
answer
51
views
"Token Purchase Failing with 'Insufficient Reserve' Error in Solidity Smart Contract"
I’ve deployed two contracts for a token sale system on BSC Testnet:
TestUSDT: https://testnet.bscscan.com/address/0xD93221735d2323a7ddca9e82d0EF44040C570848#readContract (Mock USDT)
APTToken: https://...
0
votes
1
answer
61
views
Pitfalls in small smart contract
Here is a question from a coding interview. I am just wondering what would be the major pitfall in this small smart contract in your opinion:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
...
0
votes
1
answer
241
views
Correct basic Pact CICD workflow for new contract
I have a consumer CI which fails on merge request to main if verification test fails in provider's main branch.
I also have a provider CI which will fail if the verification tests against the main ...
4
votes
1
answer
374
views
"Leaked in-place lambda" warning after an upgrade to Kotlin 2.0
Consider the following Kotlin code which overloads Reader.useLines(). The 1st extension merely invokes Reader.useLines() and has an exactly the same contract, the 2nd one filters the line sequence ...
1
vote
0
answers
309
views
How to do C++ Contracts such that compilers can use once support comes for this (such as `float f(X *x)[[expects:x]]` or `f(X *x) [[ensures: x->u]])`?
Must you use a macro to wrap this (plus hope whoever uses your code years later knows to pass -D USE_CONTRACTS,) such as
/* Licenses: allows all uses ("Creative Commons"/"Apache 2")...
0
votes
1
answer
114
views
Solidity Contract - Method.call() returning empty data
I have a solidity contract running on the sepolia testnet, that is just registering and fetching users. Apparently the register part works right, but the getAllUsers() part which is supposed to fetch ...
3
votes
1
answer
84
views
How to assure a type using Kotlin's contracts in an infix function?
Based on this answer
I wanted to create an infix version of a function which checks a variable type.
However, it seems to be ignored by the compiler. Please see the example code:
@OptIn(...
0
votes
1
answer
89
views
Clarinet test command throws error in terminal
during clarinet contract test if i am trying to give command like clarinet.test it is throwing error like below. Can any one advise me to solve this issue? Please refer below image and advise
enter ...
2
votes
2
answers
1k
views
UniswapV3 incorrect price in slot0() sqrtPriceX96
I want to get a price of token in uniswapV3 pair. As example, i have pair https://etherscan.io/address/0x409634ea16d98b0b245f345079c8f3cfe3ef1fa6.
Result of calling slot0() is [...
-1
votes
1
answer
84
views
Withdraw balances user deposit into contract by contract owner
I want to create a contract where users can deposit balances into the contract. And when the user deposit, contract owner can withdraw that balances from contract meaning transfer that balance to ...
0
votes
1
answer
248
views
Why no PACT is returned when calling path /pacts/provider/<name>/for-verification
I have a strange issue, I am creating a 2nd pact for consumer A, the first provider is B, and now I just uploaded the pact for provider C. The issue is that although I see the pact on the UI, when the ...
1
vote
1
answer
164
views
Match any value from list of strings
I new pact testing, I have a pact consumer test in which a property can have any value from a defined set of string:
this.pact
.ExpectsToReceive("an event indicating that an order has ...
0
votes
1
answer
3k
views
Eip838ExecutionError: execution reverted: Ownable: caller is not the owner
sending transaction, error occured.
Eip838ExecutionError: execution reverted: Ownable: caller is not the owner
innerError: [Eip838ExecutionError: execution reverted: Ownable: caller is not the owner] {...