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.