Skip Menu |

This queue is for tickets about the Finance-Bitcoin CPAN distribution.

Report information
The Basics
Id: 71713
Status: resolved
Priority: 0/
Queue: Finance-Bitcoin

People
Owner: perl [...] toby.ink
Requestors: PKAROUKIN [...] cpan.org
Cc: pavel [...] yepcorp.com
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.003
Fixed in: (no value)



CC: pavel [...] yepcorp.com
After 0.003 upgrade code like my $api = Finance::Bitcoin::API->new( endpoint => $self->{uri} ); my $balance = $api->call('getbalance'); breaks with: Can't call method "call" on an undefined value at /usr/local/share/perl/5.10.1/Finance/Bitcoin/API.pm line 31."Compilation failed in require at /usr/local/lib/perl/5.10.1/Class/MOP.pm line 117. at /usr/local/lib/perl/5.10.1/Class/MOP.pm line 123 Commenting line "BEGIN ..." in API.pm helps mitigate this issue. Similar issue with Finance::Bitcoin::Address: Can't call method "call" on an undefined value at /usr/local/share/perl/5.10.1/Finance/Bitcoin/Address.pm line 53 Commenting line beginning with "BEGIN ..." in file Address.pm helps to fix it too.
If this helps: $ perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi (with 53 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Subject: BEGIN lines breaking
RT-Send-CC: pavel [...] yepcorp.com
Hmmm... that's strange. Same version of Perl I use, but I've never seen that error. Oh well, those lines are only in there to assist Test::Pod::Coverage (for an author test). Can be removed without changing functionality. I'll remove them from the next release.
Fixed in 0.004.
Subject: Re: [rt.cpan.org #71713]
Date: Mon, 05 Dec 2011 17:00:58 -0600
To: bug-Finance-Bitcoin [...] rt.cpan.org
From: Pavel Karoukin <pavel [...] yepcorp.com>
Thank you! On 12/05/2011 04:59 PM, Toby Inkster via RT wrote: Show quoted text