Questions tagged [convert]
The convert tag has no usage guidance.
8
questions
0
votes
0
answers
11
views
Safely converting 1 WEI to the current ETH/USD Chainlink price
Let c be the current floating point price of ETH/USD precise to 8 decimal places.
Since Solidity cannot store floating points, getting the current price of ETH/USD from Chainlink's data feed returns c ...
0
votes
0
answers
10
views
UNKNWON TRANSACTION TO MY WALLET
I received that amount from an unknown source. what also troubles me is that my wallet displaces a much larger amount than i received which i cant explain.my gool is to convert that amount to EUR but ...
3
votes
1
answer
81
views
How to convert a uint256 array to a bytes32 array in Solidity?
Suppose I have a uint256[] array in Solidity. What's the easiest way to convert it to a bytes32 array?
0
votes
2
answers
163
views
How do i convert Boolean to String in Solidity?
The problem is pretty simple: I want to concatenate boolean values to string values. I order to do this, i assume they have to first be converted into strings and then concatenated.
Could someone ...
1
vote
0
answers
69
views
Convert this connection code from Loom testnet to Goerli Testnet
This is a utils/common file for connecting to Loom testnet.
const fs = require('fs')
const Web3 = require('web3')
const { Client, NonceTxMiddleware, SignedTxMiddleware, LocalAddress, CryptoUtils, ...
0
votes
2
answers
277
views
Convert bytes20 to address in assembly
Can you convert a bytes20 to address in assembly (not solidity-typecasting)?
If so, how?
0
votes
1
answer
91
views
Convert from Bytes[32] to bytes32 or bytes8 vyper
In vyper, how can I convert:
response: Bytes[32] = raw_call(your_contract_address, call_data, max_outsize=32)
to a bytes32 or even just take the first 8 bytes?
response: bytes8 = ?
2
votes
1
answer
120
views
convert bytes array to string array vyper
Let's say I have a bytes array as such:
Bytes[4] = b"\x00"
How would I convert this to a string?