Comments (3)
Since the $tx
is empty array (see: https://github.com/web3p/ethereum-tx/blob/master/src/Transaction.php#L144)
and we do check whether input is hex encoded string.
I don't figure out why we should check nullable $tx
in __construct.
from ethereum-tx.
If you are passing array, not hexstring, here: https://github.com/web3p/ethereum-tx/blob/master/src/Transaction.php#L176, your $tx variable doesn't exists after IFs. Your code is not working in that case at all, failing with assignment to nothing. There are numerous methods to solve it, including involving more experienced programmers, of course. Just no-testing-error :)
from ethereum-tx.
Oh, I see! I didn't set the default value of $txData.
Good finding, Thanks @mr-older !
from ethereum-tx.
Related Issues (20)
- Error: transaction could not be decoded: could not recover secp256k1 key: calculated Rx is larger than curve P HOT 4
- Support EIP1559 transaction
- Incorrect sign when using the chainId parameter HOT 3
- How to support matic chain? HOT 1
- "Invalid RLP" error when sending signed transaction HOT 10
- rlp: input string too long for uint64, decoding into (types.LegacyTx).Nonce. HOT 2
- BEP-20 transaction HOT 5
- Transaction(EIP1559Transaction) hash doesn't match the real one from server HOT 2
- I get a tx id but it doesn't show up in explorer. HOT 2
- 不知道为什么,代币转账失败
- good
- EIP1559Transaction invalid length; proto: invalid field number: tx parse error HOT 1
- sending token from smart contract to wallet HOT 6
- Support non-integer chain id
- sendRawTransaction appears to work, but the transaction never appears HOT 2
- Signature is different with web3j HOT 1
- Closed
- getFromAddress() does not work with r, s, v HOT 1
- Is it possible to send transaction in Binance Smart Chain using web3.php and web3p/ethereum-tx?
- Request for New Release Incorporating Updates Post-2022
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethereum-tx.